how to run scripts uniquely

2007-11-22 Thread cs
I thought I'd worked out how to ensure only 1 instance of a shell script was running (using grep and wc) but I now see that sometimes the script name appears twice in the list of processes - any ideas? eg (apols for wrapping) when running /home/michael/bin/backup-rsync-VERI we get the below where

Re: how to run scripts uniquely

2007-11-22 Thread Douglas A. Tutty
On Thu, Nov 22, 2007 at 06:26:40PM +, cs wrote: I thought I'd worked out how to ensure only 1 instance of a shell script was running (using grep and wc) but I now see that sometimes the script name appears twice in the list of processes - any ideas? Whenever I've needed to do that, I

Re: how to run scripts uniquely

2007-11-22 Thread Jeff D
cs wrote: I thought I'd worked out how to ensure only 1 instance of a shell script was running (using grep and wc) but I now see that sometimes the script name appears twice in the list of processes - any ideas? eg (apols for wrapping) when running /home/michael/bin/backup-rsync-VERI we get the