Hi
There are few crons running under my account. How to check the last run time of the Cron and if it has run successfully without any errors.
Also if there are any errors while running, will the errors be stored some where?
How to check the status of all the Crons?
Thanks
Ashok
All you mention should be done from the applications running. Cron isn't going to save off process errors unless you are directing the cron job off to a log file. I am guessing logging isn't available from the processes being ran as that would show last run time and any errors, if it was programmed properly.
in syslog you will be able to find out whether the cron ran the particular job or not.. but the error kind of thing you have to take care from the application side..
Only starting the said process in the time is the job of cron, it does not worries about any error.. and proceeds.
Depending on the Operating System the failure exit code (rc=) is usually in /usr/adm/cron/log. This also logs successful execution. See "man cron" for the location of your log. If there is unredirected output from the cron job this will be in unix mail for the user. As advised earlier it is easier to build your own logging into the cron job.