> -----Original Message----- > From: Jason Frisvold [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 20, 2002 11:52 AM > To: [EMAIL PROTECTED] > Subject: Redirecting output > > > Is there a way to redirect all the output (anything printed by the > program itself and any error output) back into the program so the > program can handle it? > > I'd like to be able to redirect it to itself so if there are > any errors > or unexpected output during a cron job, it'll all get mailed to me... > > Make sense?
cron will mail you the standard output of the command. To get the errors to, you normally just dup stderr onto stdout: myscript 2>&1 I don't know what you mean by "redirect it to itself" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]