Cronless - Free Cron Jobs
Development Blog for Cronless.com

Archive for the ‘Features’ Category

Eight Crazy Ways To Notify You

Monday, December 14th, 2009

Cronless now has eight ways to notify you when your free cron jobs are executing:

  • Email (default)
  • SMS
  • IM (MSN, Yahoo, GTalk and AIM)
  • Twitter

In addition, site monitoring now has the ability to override the notification, so you can just watch your sites without being notified, or only get notified after 5, 10, or 15 consecutive failures.  That way you get only the serious failures and not the random network glitches that cause false alarms.

Take the new cron job tour and find out why Cronless is the best service out there.

PHP Tip: How to Backup Your Database

Wednesday, November 11th, 2009

Here’s an easy script to use to backup your database.  Copy the contents of this script on your site as DBBackup.php and then you can create a PHP Cron Job to run it from here, once a day!

<?
// Run until complete
set_timeout_length(0);

// DB connection parameters
$host = ‘localhost’; //enter YOUR server
$username = ‘username’; //enter YOUR username
$password = ‘password’; //change to YOUR password
$database = ‘database_name’; //update with your DB
$path = ‘/home/username/backups/’; //Your backup directory (must be writable!)

$filename = $database.‘_’.date(‘Y-m-d_H:i:s’).‘.gz’;
$backup = $path.$filename;

$backup_command = “mysqldump –opt -h $host -u $username -p $password $database | gzip > $backup”;

if(exec($backup_command)==&& file_exists($backup))
{
echo
“Backup successfully executed”;
}
else
{
echo
“Error creating backup”;
}
?>

There are more sophisticated ways to backup your database, one table at a time such as described in this article, but they haven’t been moved to PHP5 yet so I would suggest this for advanced users only.

A great way to use your free cron jobs.

Tweets for Job Failures

Thursday, November 5th, 2009

Coming soon!  A new feature will be available for you:  The ability to receive TWEETS for Job failures.

And even better, you’ll be able to receive various IM notifications (Yahoo, GTalk, and AIM) in addition to MSN.

Just another reason to upgrade to Premium for Cronless.

Tips Creating Your Jobs

Thursday, October 15th, 2009

It’s quite possible that you may get timeouts when your PHP cron job runs.  If that happens, place this at the top of your script

<?php
set_time_limit(0);    //0 = run forever
?>

This will allow your script to run to completion, ignoring timeouts.  Jobs executed here at Cronless are run under this directive, but your own web server may timeout if you fail to put that in as well!

If you find that this isn’t enough and you still get timeouts (some hosts are disabling this PHP function), you can help by limiting your script output as much as possible.  (less than 4kb is ideal)

Survey Says: Better Notifications

Saturday, October 10th, 2009

Our recent survey has come back with some great feedback, including:

  • More options for notifications (GTalk, AIM, Yahoo)
  • Send emails with clear SUCCESS/FAILURE in title (for mobile users)
  • Update job setup to use a calendar widget instead of UNIX timestamp entry

Well, you spoke and we’re listening.  These features are being implemented in the coming weeks.  Keep your eye out for changes!

Bug fixes, PayPal integration improved!

Monday, September 28th, 2009

Several minor bugs have been fixed, some small site tweaks have been done, and the PayPal integration has been vastly improved.  We now have TWO levels of subscriptions you can sign up for:

$19/year gets you the Power Level, with 5 cron jobs executing as often as one/minute.

$27/year gets you the Pro Level with unlimited cron jobs and unlimited site monitoring.

You can also update your password after a system reset from the Settings tab.

Happy Cron Jobs!

Time Zone Fix

Friday, September 4th, 2009

You will notice that I fixed the time zone problem, you will now see your jobs running time in your local time zone.

This does not effect the time the job will run, all jobs are based on PST/GMT -8!

Cron Logs

Sunday, March 15th, 2009

You can now view the last 15 requests and download the entire log file.

The data is presented in a serialized array.  When you get that, simply use the language of choice to parse the array.

MSN Notify

Wednesday, March 11th, 2009

If you are a premium member, you will now see a MSN option under settings.  You can have Cronless send you an IM when something goes wrong with a monitor.

Advanced Monitoring

Monday, March 9th, 2009

Site Monitoring is now more advanced.  Alowing you to specify the port to listen to.  It logs errors and what type of error.  It checks both Port and DNS.