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!

Script wont run in cron

Discussion in 'General Discussion' started by Aerosmith, May 4, 2002.

  1. Aerosmith

    Aerosmith Well-Known Member

    Joined:
    Feb 17, 2002
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    Earth
    I have a cgi script that will run just fine when I type the URL in to the address bar of IE. This same script is not being recognized when I try to call it from a cron job. Is this the correct syntax to call a cgi?

    /home/xxxxxx/public_html/cgi-bin/script.cgi


    If this looks OK can you give me an idea of what else may be causing issues like this?


    ^A^
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    316
    have you tried this?

    root perl /home/xxxxxx/public_html/cgi-bin/script.cgi
     
  3. Aerosmith

    Aerosmith Well-Known Member

    Joined:
    Feb 17, 2002
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    Earth
    That didnt work either. Can you use root user in crom like that? I woudl hope not. If so you could do some pretty malicious stuff.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    316
    You'd only need to put root in if you were running the script as the root user. You're obviously trying to set up a cron job as some other user.
     
Loading...

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