hey, u cud direct o/p of the script to a file...that u mail it to yourself using some script...
something like * * * * * script >> logfile 2>&1 & in the end of the cron u cud get u r mailing script called in ... this shud also take care of errors in the cron ( i mean the scrip entered in the crontab not available)... regs, sachin balsekar. Rahul Garg wrote: >Hello, >I am running crontab command. > I want the output of commands in crontab file to be mailed to me. > For that I am setting the MAILTO environment variable at the beginning > of crontab file. > MAILTO="<email-id>" > But its not working though the commands in crontab file are working > fine. >Also, if I am having the file say xyz.sh that is being called from cron, its executing >and is not sending the results to me.If i remove the xyz.sh from the actual path its >not also >sending the error message to the mailid. > >Any suggestions please! > > With Regards, > Rahul Garg. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]