-
-
Save noppolp/b8ad3cc65daa28740281 to your computer and use it in GitHub Desktop.
cron command
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
| # view log | |
| $ sudo grep cron /var/log/syslog | |
| # restart | |
| $ sudo service cron restart | |
| # edit crontab | |
| $ crontab -e | |
| # list crontab | |
| $ crontab -l | |
| #sample cron job | |
| * * * * * some_program_or_script var1 var2 >> /tmp/cron_debug_log.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment