beginner here. I have a script called
updateTf2.sh
It's contents
#!/bin/bash
/etc/init.d/srcds stop
./steamcmd/sh +login anonymous +force_install_dir ./tf2 +app_update 232250 +quit
/etc/init.d/srcds start
Located here
~/home/user/updateTf2.sh
If I run ./updateTf2.sh from terminal it asks for a password, I type it in, and the script runs successfully.
When I put it in sudo crontab -e like this
10 9 * * * /home/user/updateTf2.sh
It doesn't run.
What am I doing wrong? I've seen simular tickets about this topic on here but have not seen a clear answer. Thanks for the help.
grep updateTf2.sh /var/log/syslog
, see also http://askubuntu.com/questions/149504/how-can-i-tell-if-my-hourly-cron-job-has-run – Panther Jan 10 '14 at 19:37