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.

wget in cron

Discussion in 'General Discussion' started by wookiee, Apr 18, 2005.

  1. wookiee

    wookiee Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Las Vegas
    I have a reseller account

    This is a cronjob that I used on a non-cpanel server...

    /usr/bin/wget -b "http://www.invalid.com/cgi-bin/econfirm/econfirmpro.cgi?pssw=7777&action=confirm&emailaccounts=econfirm@invalid.com"

    When I put the same thing in cpanel advanced cron, 'commit changes' and return the only thing in the panel is...
    /usr/bin/wget -b

    Then I tried wget alone as seen in examples in this site

    wget -b "http://www.invalid.com/cgi-bin/econfirm/econfirmpro.cgi?pssw=7777&action=confirm&emailaccounts=econfirm@invalid.com"

    The only thing in the panel after returning was

    wget -b

    I've searched for cpanel cron wget variations and can't find anything that helps.

    Does wget need a path?
    Why does anything after wget -b disappear?

    What do I need to do to get the above job to work?

    Tony
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's because of the quotes, try it without them.
     
  3. wookiee

    wookiee Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Las Vegas
    Yep, it was the quotes as well as removing the /usr/bin/ from /usr/bin/wget -b

    So the correct way is

    wget -b http://www.invalid.com/cgi-bin/econ...on=confirm&emailaccounts=econfirm@invalid.com

    After testing though, it still doesn't work.
    It seems to stop after the password

    From the wget log

    wget log...

    --13:58:00--

    http://www.invalid.com/cgi-bin/econfirm/econfirmpro.cgi?pssw=7777

    => `econfirmpro.cgi?pssw=7777.20'

    Resolving www.invalid.com... [my ip]
    Connecting to www.invalid.com[my ip]:80... connected.

    HTTP request sent, awaiting response... 200 OK

    Length: unspecified [text/html]


    0K 2.85 MB/s


    13:58:00 (2.85 MB/s) - `econfirmpro.cgi?pssw=7777.20' saved [299]
     
    #3 wookiee, Apr 20, 2005
    Last edited: Apr 26, 2005
Loading...

Share This Page