Skip to content

Instantly share code, notes, and snippets.

@josesayago
Created October 28, 2014 07:41
Show Gist options
  • Save josesayago/883931881015ccd92424 to your computer and use it in GitHub Desktop.
Save josesayago/883931881015ccd92424 to your computer and use it in GitHub Desktop.
Create a Cronjob for the PHP-CGI Watcher
# Create a Cronjob
~ $ crontab -e
# Cron Editor
# Run every minute
* * * * * /path/to/phpcgi-watcher.sh
# Clean up logfile every hour (optional)
*/60 * * * * echo '' > /var/log/phpcgi-watcher.log
:wq
# Check the cronjob was successfuly created
~ $ crontab -l
# Output
* * * * * /path/to/phpcgi-watcher.sh
*/60 * * * * echo '' > /var/log/phpcgi-watcher.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment