Problem with a Scheduled Task (curl)

Discussion in 'Site & Server Administration' started by slapmatt, Sep 6, 2007.

  1. #1
    I am trying to run a scheduled task on my hosting company's control panel. You can select the frequency from dropdowns and I am trying to execute this line:

    curl --user login:pass http://www.swindoner.co.uk/wp-content/update-feeds.php -d update=quiet

    I have tried it with and without the --user login:pass values.

    I get a:

    curl: (7) cannot connect

    error, which I've searched on Google for, but not found a greate deal.

    Can anyone shed any light on this for me pleasE?
     
    slapmatt, Sep 6, 2007 IP
  2. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have to check with your provider whether they allows outbound connection to port 80 :)

    This is what I am getting on my local server.

     
    tanfwc, Sep 6, 2007 IP
  3. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, seems making connections is disabled.
    Generally login isn't needed by curl.

    Have you tried to confirm if thats the problem by:

    wget > /dev/null OR lynx [url] > /dev/null
     
    agnivo007, Sep 6, 2007 IP