Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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

  2. #2
    here ar ethe commands it is choking on:

    echo "Stopping DB2..."
    db2 force applications all


  3. #3
    Run the commands of your crontab and scripts with the full path.


  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts