Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Simple Cron Job

Options
  • 15-11-2012 2:57am
    #1
    Registered Users Posts: 43,892 ✭✭✭✭


    Hey there guys,

    Trying to do a simply enough cron job in Cron Management simply executes a PHP file daily (which invokes schedule mailing / database functions etc).

    The command I'm using is:
    /usr/bin/wget "http://www.<domainname>.com/<filename>.php"

    Obviously placeholders are a valid domain name and filename. When I execute the page above, it works as normal so what am I missing?

    Probably something simple, but any help would be appreciated!

    I found your Cron Job Management video alright.. but wasn't specific to my problem.

    Thanks in advance.


Comments

  • Registered Users Posts: 7,739 ✭✭✭mneylon


    You might want to ping our support desk about this - I know we've had to lockdown some commands on our shared servers though I'm not sure offhand if "wget" was one of them
    They'd be able to advise anyway ..


  • Registered Users Posts: 43,892 ✭✭✭✭Basq


    Will do.. thanks BK.


  • Registered Users Posts: 14 oledaveoh


    Any news on wget, Basq? 
    Im having problems setting crons too.


  • Registered Users Posts: 43,892 ✭✭✭✭Basq


    oledaveoh wrote: »
    Any news on wget, Basq? 
    Im having problems setting crons too.
    Got it sorted used someone with Blacknight technical support... my cron script is as follows:
    /usr/bin/php /usr/local/pem/vhosts/<WEBSPACEID>/webspace/httpdocs/<DOMAIN>/<PHPFILE>

    Where:

    < WEBSPACEID > is your 6 digit webspace ID, <DOMAIN> is the folder in which your domain resides in under httpdocs, the <PHPFILE> is the path to the PHP file.

    Hope this helps!


  • Registered Users Posts: 14 oledaveoh


    Basq wrote: »
    Got it sorted used someone with Blacknight technical support... my cron script is as follows:



    Where:

    < WEBSPACEID > is your 6 digit webspace ID, <DOMAIN> is the folder in which your domain resides in under httpdocs, the <PHPFILE> is the path to the PHP file.

    Hope this helps!

    Thanks for the quick reply but I actually just fixed it by replacing wget with curl.


  • Advertisement
Advertisement