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
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
here ar ethe commands it is choking on:
echo "Stopping DB2..."
db2 force applications all
Run the commands of your crontab and scripts with the full path.