#!/bin/bash if (ps ax |grep -q "my_perl_script_name") ; then exit; fi my_perl_script_name
All code, unless otherwise noted, is untested
"All it will give you though, are headaches after headaches as it misinterprets your instructions in the most innovative yet useless ways." - Maypole and I - Tales from the Frontier of a Relationship (by Corion)
In reply to Re: Checking for multiple instances
by radiantmatrix
in thread Checking for multiple instances
by MarkNo1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |