Ken Schneider wrote:
Jeff Mahoney wrote:
Richard Creighton wrote:
asus:~ # crontab -e -u root
15 11 * * * /root/OFF.sh 11 22 * * * /root/ON.sh
Might iptables not be in the PATH for the cron job?
Also make sure the OFF.sh and ON.sh are executable: chmod +x
I've observed that, in some cases, things started by cron (or init) run without a UID set at all. I can't remember any examples of this, and I could be wrong, but I do remember that I've solved similar problems in the past by explicitly declaring a UID, as in: 15 11 * * * su root -c /root/OFF.sh Or maybe within your script doing: su root -c iptables -I INPUT ... Just a thought, but that would be one reason why it might work under the shell, but not from cron... Glen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org