Results 1 to 3 of 3
If I run a script from roots crontab, do I have root authority?
I'm having a strange occurence that I thought was fixed yesterday.
I can run my combined scripts ...
- 08-30-2007 #1Linux Newbie
- Join Date
- Jun 2006
- Posts
- 139
a cron question...
If I run a script from roots crontab, do I have root authority?
I'm having a strange occurence that I thought was fixed yesterday.
I can run my combined scripts from /opt/scripts and they work everytime
BUT
When I put them in the crontab the first and last scrupts run(shutdown/startup) the the backup of db2 fails with:
/opt/scripts/combine: line 23: db2: command not found
/opt/scripts/combine: line 24: db2stop: command not found
Here is where the backup starts
/opt/scripts/combine: line 27: db2start: command not found
/opt/scripts/combine: line 28: db2: command not found
What am I missing
thanks
Mace
- 08-30-2007 #2Linux Newbie
- Join Date
- Jun 2006
- Posts
- 139
PS
here ar ethe commands it is choking on:
echo "Stopping DB2..."
db2 force applications all
db2stop
thanks
Mace
- 08-30-2007 #3Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
Run the commands of your crontab and scripts with the full path.
Regards


Reply With Quote
