Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $content = `crontab -l`;
- $task = $content.'0 0 * * * php ~/www/cron/cron.php'.PHP_EOL;
- file_put_contents('/tmp/crontab.txt', $task);
- `crontab /tmp/crontab.txt`;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement