On Thu, Mar 13, 2003 at 10:01:22PM +0000, BenEBoy wrote:
How about writing a script that takes the output of ps, seaches for an existing chbg and only runs it if there isn't one already running? Using GAWK perhaps?
Something like:
`ps ax | grep chbg && chbg <args>`
? That's rather unlikely to be perfect, but a good start anyway. Might need some brackets, check your shell dox. An obvious refinement is to be a little more selective with grep.
Alexis