LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-20-2003, 10:03 PM   #1
do1do
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
Smile redirection the process stdout


My embedded system have a industrial computer,the industrial PC run a program automatically while it boot,because I had add a command line in the rc.local,the program can display its status in realtime.I can telnet to the industrial PC with root user,now is the question:When I telnet to the remote PC,How can I watch the process stdout which are running,or redirection the process stdout?
Thank you for any suggestion!
 
Old 11-23-2003, 06:37 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
You could redirect the output to a file in /etc/rc.local and then just run tail -f on that file.
 
Old 11-23-2003, 08:56 PM   #3
do1do
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Wink a file access like stdout

Thank you for your suggestion.I think if I redirection my program's stdout to a file,I can say it is a log file.the log file will increase its size continually,inIn the other hand my disk have not enough size,only 128M,I have used 120M,I don't want to maintain the log file.Is there a kind of file presently in the linux system which have fixed size and can be circularity structure,its head link to its tail.In the other word,it can be access like stdout,always record the last data,the new data cover the old data,the file size is fixed.
 
Old 11-23-2003, 11:39 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
A 'named pipe' might be helpful. Look at the man page for mkfifo.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie on forking child process and I/O redirection neo_in_matrix Programming 4 09-16-2005 03:05 AM
what is stdout stefaandk Linux - Newbie 1 09-06-2005 07:20 PM
redirect stdin/stdout of running process xtravar Linux - Software 3 03-06-2004 07:54 PM
redirection process stdout do1do Linux - General 2 11-23-2003 09:06 PM
stdout for a background process GOLDF1NG3R Linux - General 3 11-14-2001 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration