Last active
April 25, 2018 12:45
-
-
Save tuxmartin/4b2894d008a08999776306b67abc0e42 to your computer and use it in GitHub Desktop.
crontab file
This file contains 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
martin / # cat /tmp/crontest | |
* * * * * root logger "CRONTEST" | |
martin / # | |
martin / # crontab /tmp/crontest | |
martin / # | |
martin / # tail -F /var/log/syslog | grep "CRONTEST" | |
Apr 25 14:33:01 martin CRON[12350]: (root) CMD (root logger "CRONTEST") | |
Apr 25 14:34:01 martin CRON[12472]: (root) CMD (root logger "CRONTEST") | |
^C | |
martin / # | |
martin / # echo '* * * * * root logger "CRONTEST_123"' > /tmp/crontest | |
martin / # | |
martin / # cat /tmp/crontest | |
* * * * * root logger "CRONTEST_123" | |
martin / # | |
martin / # crontab /tmp/crontest | |
martin / # | |
martin / # tail -F /var/log/syslog | grep "CRONTEST" | |
Apr 25 14:39:01 martin CRON[12806]: (root) CMD (root logger "CRONTEST_123") | |
Apr 25 14:40:01 martin CRON[12861]: (root) CMD (root logger "CRONTEST_123") | |
# https://kb.iu.edu/d/afiz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment