Skip to content

Instantly share code, notes, and snippets.

@taclab
Created November 24, 2010 14:04
Show Gist options
  • Select an option

  • Save taclab/713692 to your computer and use it in GitHub Desktop.

Select an option

Save taclab/713692 to your computer and use it in GitHub Desktop.
crontab
<?php
//! Query
$time = "*/15 * * * * /usr/bin/php -f /home/taclab/public_html/fbapi/fb/test_cron.php > /home/taclab/public_html/fbapi/fb/clean_tmp_dir2.log";
//! Write Cront2.cron
$fichier = "cront2.cron";
$fil = fopen($fichier,'a');
fputs($fil,$time."\n");
// Execute
passthru('crontab mehdi.bourgeois@gmail.com /home/taclab/public_html/fbapi/fb/cront2.cron');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment