Created
October 28, 2014 07:41
-
-
Save josesayago/883931881015ccd92424 to your computer and use it in GitHub Desktop.
Create a Cronjob for the PHP-CGI Watcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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