I have a shell script which works fine which writes the log to a file whenever there is an error or failure. it works fine if I run the script from console. But if I try to set up the script as the cron job. It doesn't write anything to the log file. please advise.