Search code examples
ubuntuterminalcroncron-taskcronexpression

Crontab for shell not working


I have a program named all.sh in the directory home/hmm

52 08 * * * /usr/bin/sh /home/hmm/all.sh

It doesn't run. I know where is something wrong in the /usr/bin/sh. any help?


Solution

  • Your path to the sh executable is wrong. In your interactive shell type: "which sh" to get the actual location and use that in your crontab entry. (It's probably /bin/sh)