Results 1 to 2 of 2
i have a very simple bash script that I schedule to run every hour.
But the problem is, this script does run but the command inside doesn't work.
If I ...
- 04-14-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 1
problem running bash script from cron
i have a very simple bash script that I schedule to run every hour.
But the problem is, this script does run but the command inside doesn't work.
If I run it manually, it works. I am puzzled!!!
Here is the script:
crontab run under root user.Code:#!/bin/bash /usr/bin/pon vpn1
30 */1 * * * /home/script.sh
Problem is not the cron but the script doesn't work when run under cron.
If I run it manually using ./script.sh, then it will work.
Any ideas?
*the pon command is to connect to a remote vpn server
- 04-14-2010 #2
what happens when you put it in /etc/crontab instead of the personal crontab I've never liked using personal crontabs, they always seem to have problems.
Code:30 */1 * * * root /home/script.sh
linux user # 503963


Reply With Quote