Jump to content

Recommended Posts

the normal way to edit the cron is with 'crontab -e', which opens the cron in a text editor. obviously, you can't do this with PHP exec(), but you can also do 'crontab filename' and it will install the contents of 'filename' as the new cron. So using PHP create a temporary file will all the cron info in it (not just new, old and new) then run 'crontab /path/to/file' via one of PHP's exec() functions

This forum really needs an edit option.

 

You're allowed to make an edit up to like 2-3m after you post (don't remember exact window).  But past that, we've disabled it, due to people constantly deleting posts and threads after the fact, or else going back later and editing and then it causes confusion in the whole problem solving process.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.