quoted print?

Rick Cooper rcooper at DWFORD.COM
Tue Nov 9 11:11:05 GMT 2004

> -----Original Message-----
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
> Behalf Of Julian Field
> Sent: Tuesday, November 09, 2004 5:22 AM
> Subject: Re: quoted print?
> Any idea how to do this? My sh isn't good enough. I can redirect
> the stderr
> of the script to its stdout with "exec 2>&1", but how do I redirect the
> stdout through "tee" which is presumably what I need to do to get
> the output
> into a file as well as on the terminal. "exec |tee file.out" is obviously
> not right.

Actually, "exec 2>&1 | tee -a file.out" should work fine. try "ls sdngfds
2>&1 | tee -a file.out" and you should see the error on your screen as well
as in file.out. (the "-a" would be best for appending to the log btw)


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

More information about the MailScanner mailing list