Guest User

Untitled

a guest
Feb 8th, 2018
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. ls /var/log/cron*
  2. ls: cannot access /var/log/cron*: No such file or directory
  3.  
  4. # cron.* /var/log/cron.log
  5.  
  6. journalctl _COMM=cron
  7.  
  8. journalctl _COMM=cron --since="date" --until="date"
  9.  
  10. # Mail any output to myuser@gmail.com, no matter whose crontab this is
  11. MAILTO=myuser@gmail.com
  12. # Run the following command ten minutes after midnight, every day
  13. 10 0 * * * $HOME/bin/aJob.sh
  14.  
  15. # Run the following command ten minutes after midnight, every day
  16. 10 0 * * * $HOME/bin/aJob.sh >> /tmp/aJob.log 2>&1
  17.  
  18. # Mail any output to myuser@gmail.com, no matter whose crontab this is
  19. MAILTO=myuser@gmail.com
  20. # Run the following command ten minutes after midnight, every day
  21. 10 0 * * * $HOME/bin/aJob.sh >> /tmp/aJob.log
Add Comment
Please, Sign In to add comment