14 Mar
2003
14 Mar
'03
1:11 a.m.
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 -- Don't anthropomorphise computers. They hate that. "The postmodernist will point out that cheap tricks are less expensive than costly tricks." - Larry Wall, http://www.wall.org/~larry/pm.html