daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top