can't add a default route from cron
Hi there,
I want to add a default route from cron and it doesn't work. I can't image why. Maybe there are some cron variables or something...??!! 1. crontab -e (as root) * * * * * route add default gw X.12.12.1 or * * * * * /root/s1 and s1 contains the command from above. When I run the script manually it works, but not from cron. Any help would be appreciated. Thanks |
Use the full path for the route command in crontab, or in the script:
Code:
* * * * * /sbin/route add default gw X.12.12.1 |
Thanks,
It worked! |
All times are GMT -5. The time now is 09:23 PM. |