Forum help and support
Setting up cron jobs
Page 1 of 1
- #1 by its4u
-
I have setup a Drupal site on http://www.itsupportforyou.co.uk.
Everything works fine except for the following:
A requirement of the installation is that a cron job is run periodically on the cron.php file (see: http://www.drupal.org/cron).
On my test system I have just enabled the following line within my cron jobs:
45 * * * * /usr/bin/wget -O - -q http://www.itsupportforyou.co.uk/cron.php
Can this be done for my site on your server? If so how?
Additionally, does the server support lynx, wget or curl?
If not, I need to use a perl script, as follows:
#!/usr/bin/perl
require HTTP::Request;
require LWP::UserAgent;
$request = HTTP::Request->new(GET => 'http://www.itsupportforyou.co.uk/cron.php');
$ua = LWP::UserAgent->new;
$response = $ua->request($request);
$code = $response->code($code);
$message = $response->message($message);
print STDOUT $code . " " . $message . "\n";
If I were to save this as a perl script in my cgi-bin, I will still need to use cron to schedule the job (i.e. "00 * * * * /home/username/bin/cron.pl > /dev/null 2>&1")
Again, how can I setup the cron job?
Also, do you allow ssh connections to webspaces?
Thanks in advance for your help.
Regards,
Jon Bryan
[/i] - Posted on Friday, 17th August 2007 at 1:36pm
- #2 by admin
-
I'm afraid we don't support crontabs or shh on our virtual hosting platforms. If you are interested in such capabilities we suggest looking into upgrading to our dedicated hosting service where you would have your own server where you can support any services you require.
See http://hosting.supanet.com/dedicated-servers/ - Posted on Friday, 17th August 2007 at 2:17pm
- #3 by its4u
-
OK no problem, thanks all the same.
I'll go with another solution.
Out of interest, I have considered hosting the website on my own equipment.
If I wanted to go ahead with this can I just change the IP address of the A record for the www host - pointing it to my own IP address?
Regards,
Jon Bryan - Posted on Friday, 17th August 2007 at 2:51pm
- #4 by admin
- Theoretically that should work providing you have a static IP address. If not you would have to constantly update your A Record.
- Posted on Friday, 17th August 2007 at 3:15pm
- #5 by its4u
-
Nice

Cheers Chaps/Chapesses! - Posted on Friday, 17th August 2007 at 3:45pm
First | Prev | 1 | Next | Last
Displaying posts 1 - 5 of 5
Latest News
Having a bad day? Tell the world all about it!
01/02/07 - A new website will let people show the rest of the world how they're feeling. IRateMyDay.com is operated by D2Soft Technologies and uses Instant Blogging to let users update the world as to how they feel their day is going.
Student's encouraged to use Wikipedia
The founder of the online encyclopaedia, Wikipedia, has criticised teachers who ban students from using the site. 'Speaking at the Online Information Centre, Wikipedia's founder Jimmy Wales branded those who have banned students from using the resource as "bad educators".
TV giants launch YouTube rival
23/03/07 – Two of America's biggest TV networks are going to combine and show their shows on a single portal to try and stop the rise of video-sharing sites such as YouTube.
NBC Universal and Fox will allow people to see their top shows and blockbuster movies on the site.

