redirect stdin/stdout of running process
Is there a way to redirect standard input and output after a process is running? I'm well aware of how to do it when starting a process; however, what I want to do is 'check up' on a program that's running under a separate session or in the background.
Google failed me on this one so I thought I'd try here. Thanks in advance. |
Checking up on a process
I don't know of a way to attach to the standard input/output of a process, unless it is in the /proc filesystem. But to check up on a running process, I tend to do the following:
command > output tail -f output Then I can log in remotely and tail the output, even if it is still scrolling on the original screen. -Snags |
Yeah I usually use tail, too. But sometimes you need something more powerful and sophisticated.
That is where screen comes in. It has some very powerful capabilities and it is probably already installed. At least it is for me. Quote:
|
Screen is exactly what I was looking for. Thanks.
|
All times are GMT -5. The time now is 08:01 PM. |