Advertisement
Myros27

Untitled

Aug 19th, 2016
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exec 9>> "$lockfile" && [[ $({ fuser -f "$lockfile"; } 2>&- 9>&-) == $$ ]] || exit
  2. while [1=1];
  3. do:
  4. d=$(date if (( t2 - t1 > 8*60*60 ))') t=$(< timestamp); if ((d > t)); then date +%s >| timestamp; echo 'take this dir'; else continue;
  5. date +%s > timestamp
Advertisement
RAW Paste Data Copied
Advertisement