Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

pkgacct script acts different with cron

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


    TCSLEA Active Member

    Oct 29, 2003
    Likes Received:
    Trophy Points:
    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.


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice