![]() |
how do i log the start/completion (time&date) of my cron job script?
how do i log the start/completion (time&date) of my cron job script?
i want to be able to see what time it started and what time it finished? and if there where any errors while running my script thanks davide |
Try logger. It's made for what you're trying to do.
Mike |
You could also put the "date" command at the top and bottom of your script. Any output from you script should be emailed to the user it is run as. If you want to send it to a different address include a line similar to, "MAILTO=user@example.com" in your crontab file.
HTH Forrest |
I have generally written a log file to keep track of the performance of my scripts. For example
Quote:
Hope this helps. Ken p.s. these lines are included in the shell script which would be executed by cron. |
| All times are GMT -5. The time now is 08:04 AM. |