The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pkgacct script acts different with cron

Discussion in 'General Discussion' started by TCSLEA, Dec 24, 2003.

  1. TCSLEA

    TCSLEA Active Member

    Joined:
    Oct 29, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Austin, T E X A S
    Surely there is something obvious I am overlooking... but for now, I'm stumped...

    When I do /scripts/pkgacct <account> from the command line (as root), it does the mysqldump part just fine:

    Grabbing mysql privs...Done

    But if I put an entry in my root crontab:

    15 00 * * * /scripts/pkgacct <account>

    I get this:

    Grabbing mysql privs...mysqldump: not found
    mysqldump: not found


    Same command to run pkgacct, except the first one was done from the command line as root, and the second was done from cron as root.

    The other parts of that script works flawlessly, as do all other cron entries. It's just this one system() call that doesn't work.

    *sigh*
     
Loading...

Share This Page