Re: singleton for script with shebang

2015-01-01 Thread Shlomi Fish
Hi Bradley, On Thu, 1 Jan 2015 13:54:57 -0800 Bradley Asztalos b...@customweather.com wrote: I have a simple script, foo.sh:: #!/bin/bash echo start $$ sleep 10 echo end $$ I can run make sure this runs as a singleton with sem --fg -u --id lock_id ./foo.sh But I'm wondering if it

singleton for script with shebang

2015-01-01 Thread Bradley Asztalos
I have a simple script, foo.sh:: #!/bin/bash echo start $$ sleep 10 echo end $$ I can run make sure this runs as a singleton with sem --fg -u --id lock_id ./foo.sh But I'm wondering if it is possible to use shebang in this context as in: ---singleton.sh- #!/opt/local/bin/parallel