[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redirecting output and input in mid job
From: |
Andreas Schwab |
Subject: |
Re: redirecting output and input in mid job |
Date: |
Tue, 09 Jul 2002 11:00:05 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux) |
jidanni@dman.ddts.net (Dan Jacobson) writes:
|> here's some ideas for your deluxe edition:
|> $ (while sleep 3; do echo o; done)&
|> $ fg -o file #exec job's 1> file
|> $ fg -a file #appends
|> $ bg -a file
|> $ bg \< file #or -i, or -fd 1, 2 , 0 etc. or /dev/stderr ...
|> etc. etc. i.e. redirecting output and input in mid job.
|> or something like that. in case you can't do this already.
This is impossible. Redirections cannot be changed after a process is
started, except by the process itself.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."