Follow me
To me it looks like this may be your first time here. If you like why not Follow me.
You might also like to find out a bit more about me
Projected Cron Jobs
May 12th, 2010Someone was asking my advice today on how they could get around a problem.
They said that they had an automated system where all they had to do to deploy a site was FTP up a few files and folders to each host they used.
However the system they designed required them to also create a cron job on each host. This was A: Slowing them down and B: Some hosts dont allow it
Well here is a simple and easy solution to it for anyone who needs one: -
Create a page on your main site (hidden or behind some sort of protection) where it contains a number of IFRAMES
Each of these IFRAMES contains the page you would have called from the cron on the remote site
Then create a cron job on your central site to load the page with the IFRAMES in it.
Simple really
Related posts:
- Building a distributed link network
- Friendly 404 page for SMF Forums
- Quixapp is a great tool for outsourced research
- Instead of categories use Google custom search
- Traffic tasting for long term MFA results
2 Responses to “Projected Cron Jobs”
Leave a Reply
About SEOidiot
Hi my name is Paul Madden and I am a UK SEO based in Lancashire, for years I have been cursed by the nickname SEOidiot which started life as a form of abuse from someone but you need to decide for yourself how accurate the term is.
Quotes about me
Jason Duke
World leading SEO expert



I like your thinking; would it not be easier to just create one PHP script though and go through all your external cron jobs like:
<?php
exec("wget -O – -q -t 1 http://www.example.com/hidden_dir/cron.php");
exec(”wget -O – -q -t 1 http://www.example2.com/hidden_dir/cron.php“);
exec(”wget -O – -q -t 1 http://www.example3.com/hidden_dir/cron.php“);
exec(”wget -O – -q -t 1 http://www.example4.com/hidden_dir/cron.php“);
?>
Then you can just run this one php script as your cron job and it will call all the other scripts for you.
Another good thing about wget is that it supports htaccess username/password authentication, so you could protect all your external cron scripts as well
and still call them like:
exec(”wget –user=user –password=pass -O – -q -t 1 http://www.example5.com/hidden_dir/cron.php“);
Yup Jon probably, but this took 20 secs to set up and works ok