How to test a cron job?

You can update the MAILTO variable to your email address, and cron should email you any STDOUT and STDERR output. Also check your syslog file /var/log/messages to see if the script is being executed by cron Tony.

You can update the MAILTO variable to your email address, and cron should email you any STDOUT and STDERR output. Also check your syslog file /var/log/messages to see if the script is being executed by cron. -Tony.

If so, it contains nothing about my cron, which would indicate it isn't running. I haven't got email set up on my machine yet, so I'll give that a go and see what shakes out. – Dave May 2 at 14:38 There is nothing written to /var/log/messages but adding a MAILTO variable above the crontab line gives the feedback I was looking for.

- Dave – Dave May 4 at 14:23.

Cron should mail it results so it looks like you have a problem. Here, it seems you are missing a user to run the script as : 00,06,12,18 * * * user_name /opt/scripts/selenium/run_nis_inf_tests. Sh replace user_name by the name of the user the script needs to be run by, verify permissions of "run_nis_inf_tests.

Sh" and you should be ok.

When I tried your suggestion (adding the username), I got the error, "/bin/sh: selenium: not found". The syntax I use is, "00 */1 * * * /opt/scripts/selenium/run_nis_inf_tests. Sh".

– Dave May 4 at 15:35 Yes sorry, no username needed in your case as you do crontab -e! Did you check syslog. Conf?

– mecano May 5 at 9:37.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions