programming:c:lockf
Differences
This shows you the differences between two versions of the page.
programming:c:lockf [2008/04/30 18:21] – created crustymonkey | programming:c:lockf [2008/04/30 18:22] (current) – crustymonkey | ||
---|---|---|---|
Line 4: | Line 4: | ||
====== Why Use It? ====== | ====== Why Use It? ====== | ||
This is very helpful when running a cron job that might run long enough that it would " | This is very helpful when running a cron job that might run long enough that it would " | ||
- | |||
- | ====== Usage ====== | ||
- | < | ||
- | $ lockf --help | ||
- | usage: lockf [-ks] [-t seconds] file command [arguments] | ||
- | </ | ||
- | A typical call would be: | ||
- | < | ||
- | $ lockf -t 30 / | ||
- | </ | ||
- | This would create a lockfile, ''/ | ||
====== Download ====== | ====== Download ====== | ||
Line 26: | Line 15: | ||
# make && make install | # make && make install | ||
</ | </ | ||
+ | The above will install the binary in ''/ | ||
+ | |||
+ | ====== Usage ====== | ||
+ | < | ||
+ | $ lockf --help | ||
+ | usage: lockf [-ks] [-t seconds] file command [arguments] | ||
+ | </ | ||
+ | A typical call would be: | ||
+ | < | ||
+ | $ lockf -t 30 / | ||
+ | </ | ||
+ | This would create a lockfile, ''/ |
programming/c/lockf.1209579667.txt.gz · Last modified: 2008/04/30 18:21 by crustymonkey