Timeline for Correct locking in shell scripts?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 29, 2023 at 13:38 | history | bounty awarded | Flimm | ||
| Jan 25, 2023 at 8:42 | history | edited | Flimm | CC BY-SA 4.0 | Add cron job example, since the question mentions cron jobs a lot. It's also a simpler example to start out with |
| Jan 25, 2023 at 8:32 | comment | added | Flimm | flock is part of the util-linux package on Debian and Ubuntu. | |
| May 7, 2016 at 21:24 | comment | added | maxschlepzig | @dubiousjim, BSD lockf also calls flock() and is thus problematic over NFS. Btw, in the meantime, flock() on Linux now falls back to fcntl() when the file is located on a NFS mount, thus, in a Linux-only NFS environment flock() now does work over NFS. | |
| Nov 14, 2012 at 14:06 | comment | added | dubiousjim | BSD has a similar tool, "lockf". | |
| Oct 5, 2011 at 8:03 | comment | added | maxschlepzig | The flock() system call does not work over NFS. | |
| Oct 5, 2011 at 1:16 | history | answered | dru8274 | CC BY-SA 3.0 |