Hi.
I am running a script on solaris 10 and mailing it to my personal email.
the script is ran as user xxx, And i have edited the crontab for user xxx to run the script and mail it to my email account.
/network_check.sh | /usr/bin/mailx -s "Network Test"
k454@hotmail.com
the sript runs fine outside of crontab and email the expected output.
i.e.
TUcron reported errors for server:
tjob_20090528-0300.log
the script touchs a few tmp log files and then cleans up.
However when i run the script with crontab it executes the script and
TUcron reported errors for server:
::::::::::::::
/var/tmp/logTU.txt
::::::::::::::
tjob_20090528-0300.log
the script finishes, however it doesnt remove any of the log files that were generated in the cleanup stage of the script. and it outputs
:::::::::::::
::::::::::::: at the point when the log files are being generated by the script in crontab dont know what it is referring to, Can anyone help