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.

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:
    6
    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^
     
  2. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    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:
    6
    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.
     
  4. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    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