--On 16 July 2014 10:55 +0100 krad <kraduk at gmail.com> wrote: > send a kill to the script and then to the sleep process itself? Would work, but wouldn't allow a simple: kill `head -1 /var/run/mypid.pid` Which would make it a nasty 'exception' to how everything else works on the system :( -Karl