Jeff Abrahamson on 7 Jan 2004 23:01:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] changing stdout in a script


Can a shell script change where stdout goes?

I have a shell script that creates a directory.  I would like to have
echo and all other instances of output to stdout go to a file in this
directory.

Of course, I could do this with two scripts, one of which is a
wrapper.  Does anyone know a way to do this with just one script?

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>
 GPG fingerprint: 1A1A BA95 D082 A558 A276  63C6 16BF 8C4C 0D1D AE4B

Attachment: pgpNNKHcMKnqT.pgp
Description: PGP signature