Linux crontab ignores my entry -
hello there awesome people of stackoverflow.
i have problem have never tried before. here situation.
i ssh dedicated server root. run crontab -e
, crontab file open, write in simple line:
* * * * * /usr/bin/touch /tmp/chekifworks.txt
then save , message new crontab job installed. great, except absolutely nothing. guess what! if change this:
* * * * * /root/script.sh
and contents of /root/script.sh touch /tmp/testing.txt
still nothing.
output of crontab -l
:
* * * * * /usr/bin/touch /tmp/checkifworks.txt 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /etc/webmin/status/monitor.pl @reboot /etc/init.d/shout
please, mighty gods of so, me out on one, gladly provide information may need if need it.
update: did chmod a+x /root/scrip.sh
still no good.
it thing use full path commands in crontab. should use following.
* * * * * /usr/bin/touch /tmp/chekifworks.txt
the environment in cron
runs has limited path
variable.
it not use script (check being executable, btw), environment transferred cron
script, , still limited.
Comments
Post a Comment