0

Possible Duplicate:
Use PHP to create, edit and delete crontab jobs?

I need to schedule a cron job using PHP:

52 15 29 3 2 2011 php -q /var/www/virtualhosts/guy.lt/face2/includes/cron.php

How do I do that using system/shell_exec or whatever that can be run from the PHP code itself?

Community
  • 1
  • 1
Gajus
  • 55,791
  • 58
  • 236
  • 384
  • Also if you want to schedule something, there would be the system command `at` which does not involve adapting configuration files. – mario Mar 29 '11 at 15:16

1 Answers1

1

Try editing your cron file, or some file for that matter, let's say cronjobs, and then running system("crontab cronjobs")

pyramation
  • 1,483
  • 3
  • 19
  • 34