Guest User

Untitled

a guest
Apr 16th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. @hourly [ "$( date +%s )" -lt 1549269000 ] && /path/to/my-script.sh
  2.  
  3. @hourly ( f="$HOME/job.count";c=0;[ -f "$f" ] && read c <"$f"; echo "$(( c + 1 ))" >"$f"; [ "$c" -lt 5 ] ) && /path/to/my-script.sh
  4.  
  5. (
  6. f="$HOME/job.count"
  7. c=0
  8. [ -f "$f" ] && read c <"$f"
  9. echo "$(( c + 1 ))" >"$f"
  10. [ "$c" -lt 5 ]
  11. ) && /path/to/my-script.sh
Add Comment
Please, Sign In to add comment