Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exec 9>> "$lockfile" && [[ $({ fuser -f "$lockfile"; } 2>&- 9>&-) == $$ ]] || exit
- while [1=1];
- do:
- d=$(date if (( t2 - t1 > 8*60*60 ))') t=$(< timestamp); if ((d > t)); then date +%s >| timestamp; echo 'take this dir'; else continue;
- date +%s > timestamp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement