Hot answers tagged

2

The cronjob may very well be running - however you have provided no redirection of its output (stdout), so it has no where to be displayed. The tasks launched by cron are responsible for their own logging / output - cron provides no output redirection capability. You can have the the cron job launch a terminal and then run your script in it; here is an ...


2

How do you know that "nothing happens"? Just because the script doesn't pop up in a window on your screen, doesn't mean it is not running. Cron is made for "batch" tasks, not for starting interactive programs, so not only it won't automagically launch a terminal window for you (though that could be done manually), most of the time it can't launch any ...


1

Oh wow. The answer: use full paths I thought I had done just that, Until I found that someone else had a problem using ssmtp directly from the crontab. They had: 0 9 * * * ssmtp a@hotmail.com < /home/a/a-msg.txt and had to change it to 0 9 * * * /usr/sbin/ssmtp a@hotmail.com < /home/a/a-msg.txt Which apparently fixed the problem. I, on the ...



Only top voted, non community-wiki answers of a minimum length are eligible