[nylug-talk] Newbie command line question

John Campbell jcampbell1 at gmail.com
Sat Dec 8 15:24:21 EST 2007


How do I redirect the output of an already running job to something
other than the terminal?

For instance I did a large copy operation using "scp".  Then I
suspended it with "C-k", and resumed it in the background with "bg",
but the stderr messages appear in the terminal.  Is it possible to
reroute the error messages while the job is in progress?

e.g.
I type this:
scp -r foo at server.com:~/files/* .
and what I really want is:
scp -r foo at server.com:~/files/* 2> errors.txt &

How can I make that happen at runtime?

Regards,
John Campbell


More information about the nylug-talk mailing list