Links for 2010-07-07

This entry was posted in Uncategorized. Bookmark the permalink. Both comments and trackbacks are currently closed.

6 Comments

  1. Posted July 8, 2010 at 00:59 | Permalink

    sponge is quite handy, and is equivalent to method 6 here: http://www.pixelbeat.org/docs/unix_file_replacement.html

    I use xargs -P instead of parallel, iconv -futf8 -tutf8 instead of isutf8, join/uniq instead of combine

  2. David Malone
    Posted July 8, 2010 at 20:36 | Permalink

    FreeBSD has lockf as a command line utility (since 1997), though I sometimes wish cron had a builtin locking feature to prevent multiple instances running at the same time. I’ve seen a few things like ts before, but it should be a standard.

  3. Posted July 8, 2010 at 22:47 | Permalink

    Oh http://www.freebsd.org/cgi/man.cgi?query=lockf is cool. I’ve needed that functionality in the past and had used a less robust script: http://www.pixelbeat.org/scripts/sematree

  4. Posted July 9, 2010 at 10:58 | Permalink

    and needless to say I had my own mutex locking script, too ;)

  5. Posted February 17, 2011 at 11:36 | Permalink

    I should mention (for google) that lckdo is the moreutils util related to locking. I also noticed the lockfile command which is part of procmail on my fedora 14 system. Also today I noticed the lockfile-progs package (via http://twitter.com/jacobian/statuses/37927174136803328 )

  6. Posted February 17, 2011 at 11:59 | Permalink

    “lckdo”! what an incomprehensible/unintuitive name. :( Still, good to know it’s there, although relatively recently — my RHEL5 work desktop doesn’t have it.