Crontab no error but doesn't execute script

Posted by crontabOnFreebsd on Stack Overflow See other posts from Stack Overflow or by crontabOnFreebsd
Published on 2010-01-12T16:29:46Z Indexed on 2010/03/18 3:31 UTC
Read the original article Hit count: 691

Filed under:
|

I'm trying to execute a shell script from cron on Freebsd.

To test wether crontab is working at all, i wrote the line
* * * * * echo "Hello" > /home/myuser/logile
and it work fine.

But when trying to execute any script it doesn't do anything, not even an error. (In the script i tried to run is just the same echo command) Below is the output of crontab -l:

SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
HOME=/home/myuser
MAILTO=myuser
* * * * * /home/myuser/shellscript.sh > /home/myuser/logfile

why is the script not getting executed, although crontab is obviously running? permission for all files are set to rwxr-xr-x

© Stack Overflow or respective owner

Related posts about crontab

Related posts about freebsd