|
| Support Queries This forum should be used to contact our support team should you have any problems with your account. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
(#1 (permalink))
|
| User ![]() Posts: 8 Join Date: Aug 2006 | I've found the Cron Job editor in Hspere but i'm a bit perplexed I want to set up a a cron job to periodically view http://mydowmain.co.uk/wp-mail.php how do I fill the thing in to do this, i think the command is wget -N http://mydomain/wp-mail.php but I don't get all the numbers bit cheers Rawedge |
| |
(#2 (permalink))
|
| User ![]() Posts: 23 Join Date: Aug 2006 Location: N. Wales | ok, if it is anything like the crontab I know and love the numbers are as follows: "Minutes" "Hours" "Day of Month" "Month of Year" "Day of Week" So if you want something to run every 5 minutes you can do: */5 * * * * /path/to/executable Or 13:43 every day: 43 13 * * * /path/to/executable I hope this makes it clearer. |
| |
(#3 (permalink))
|
| User ![]() Posts: 3 Join Date: Jun 2006 | I've tried that and it isrunning the command every 15 minutes however I can't get the command right, i've tried putting www. and not using it in the domain bit, but i'm getting permission denied errors in the email it sends e.g /bin/sh: /usr/bin/wget: Permission denied ) any suggestions to what the command would be? do I need shell access turned on? |
| |
(#4 (permalink))
|
| User ![]() Posts: 23 Join Date: Aug 2006 Location: N. Wales | Thatt basically means the user you are adding the cron jobs on doesn't have access to the 'wget' command. This is for good reason as many hack attempts use 'wget' to exploit servers. You can get round this by changing the permissions on /usr/bin/wget, or running the cron job as a higher privilaged user. Shell access only turns on SSH so you shouldn't need that for the cron jobs (although if you get stuck then you may need to SSH in and do it as root or something similar. Regards Andrew |
| |
(#6 (permalink))
|
| User ![]() Posts: 23 Join Date: Aug 2006 Location: N. Wales | I'm on VPS so can't really advise on the shared setup. Time for me to step down and XILO techs to step in ![]() If you get really stuck though you should be able to re-write your script in a shell php script and use php's curl functions (if enabled on the server). Assuming the hosting server runs CentOS or another RedHat derivative you should find 'links' will work instead of 'lynx' if installed. |
| |
(#9 (permalink))
|
| Techie & Moderator ![]() Posts: 764 Join Date: Apr 2006 Location: Swindon, UK | Try "php", so your cron might be:- php /home/USER/public_html/wp-mail.php You also might like to try GET in the following format; I am using this format for WordPress on a shared server and it is working fine. GET http://www.domain.co.uk/wp-mail.php > /dev/null |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Powered by vBulletin | XHTML | © Copyright 2003-2009 XILO Communications Ltd. All rights reserved. E&OE