Script error monitoring

Hi
I need to know will there be any location in unix(solaris) if any scripts under the cron fails will it be stored anywhere?

Not sure if there is a special logging directory for all. but for each entery in cron you will have the specific log file attached. you can check that.

crontab -e

will display all the entries in the crontab and you can also see where the log is being stored.

By default cron will send email to the user with "the output of the command." The man page makes no indication as to whether or not this includes stderr or is just stdout (I'd guess it's both, but I wouldn't be surprised if the flavour of UNIX doesn't make a difference too)

Personally, I always redirect my cron outputs to a known location, even if the script that is being executed immediately opens different stdout/err files.

* 10 * * * * /home/user/scooter/bin/somescript >>/usr2/logs/somescript.clog 2>&1