Advertisement
Myros27

Untitled

Aug 19th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement