Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    141

    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

  2. #2
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    141
    PS
    here ar ethe commands it is choking on:

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


    thanks
    Mace

  3. #3
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Run the commands of your crontab and scripts with the full path.

    Regards

Posting Permissions

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