[SATLUG] Script

Travis H. solinym at gmail.com
Tue Oct 17 21:18:55 CDT 2006


On 10/1/06, Chris Lemire <good_bye300 at yahoo.com> wrote:
> Also, for
> this one, you must have sendmail and a program
> installed called sendEmail.

Whatever goes to stdout already gets emailed to the owner of the cron job.

Also, if you want all of stdout of subsequent programs to go to a file:

exec > /path/to/file

You can also use >> if you want to append instead of overwrite.

Getting your stdout back is trickier, but can be done.
-- 
"The obvious mathematical breakthrough would be the development of an
easy way to factor large prime numbers.'' [sic] -- Bill Gates  -><-
<URL:http://www.subspacefield.org/~travis/>
GPG fingerprint: 9D3F 395A DAC5 5CCC 9066  151D 0A6B 4098 0C55 1484


More information about the SATLUG mailing list