SEOidiot

Follow me

Hello there

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, 2010

Someone 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

2010-05-12_2319

Related posts:

  1. Building a distributed link network
  2. Friendly 404 page for SMF Forums
  3. Quixapp is a great tool for outsourced research
  4. Instead of categories use Google custom search
  5. Traffic tasting for long term MFA results

2 Responses to “Projected Cron Jobs”

  1. Jon Hudghton says:

    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“);

  2. SEOidiot says:

    Yup Jon probably, but this took 20 secs to set up and works ok :)

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

"Paul is one of those few people in the online marketing business that not only understands the intimate details of SEO but intuitively knows and implements how to deliver it. Paul is a very humble guy and goes by the moniker of SEO Idiot, anyone who takes that literally had better watch out as Paul is as much an idiot in SEO as most others in the industry are gurus! An amazing guy, a knowledgeable business man and "a doer". Paul is not only an asset in every project we work together on, but I am honoured to say has become a true friend."
Jason Duke
World leading SEO expert
kerboo






  • About SEOidiot
  • Follow Me
  • Recommended Reading
  • SEO services

  • Tags


    Big List - Search Marketing Blogs