[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redirecting output and input in mid job
From: |
Chet Ramey |
Subject: |
Re: redirecting output and input in mid job |
Date: |
Tue, 9 Jul 2002 08:40:20 -0400 |
> 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 isn't possible with the Unix process model. One process can't
change another's file descriptors.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/