Guest User

Untitled

a guest
Jun 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. # Min Hr DayOfMonth Month DayOfWeek Command
  2. # --- -- ---------- ----- --------- -------
  3. 0 7 29,30 6 * X
  4. 0 7 * 7-11 * X
  5. 0 7 1-30 12 * X
  6.  
  7. if [[ "$(date +%Y)" != "2009" ]] ; then
  8. exit
  9. fi
  10.  
  11. # Make the job executable on 29 June.
  12. 0 6 29 6 * chmod +x /path/to/my/job/script
  13.  
  14. # Run the job between June and December, only if it's executable.
  15. 0 7 * 6-12 * test -x /path/to/my/job/script && /path/to/my/job/script
  16.  
  17. # Disable execution after 30 December.
  18. 0 8 30 12 * chmod -x /path/to/my/job/script
  19.  
  20. 10 5 10 * * means run at 5:10 on every 10th of every month.
  21.  
  22. 10 5 * 12 * means run at 5:10 on every day in december
  23.  
  24. 10 5 * * 1 means run at 5:10 every Monday
  25.  
  26. 0 7 * * 6-12 command_X
Add Comment
Please, Sign In to add comment