Paul,
While I think that the solutions provided by David and rj would
work, my impression of your problem is that you need something like
resource locking. The 'shlock' program is tailored for doing this in shell
scripts.
Regards,
Kenneth
On Sun, 25 Jul 1999, Paul Murphy wrote:
> I am trying to write a script that tests if a certain program is
> running, I thought to use :
>
> if ( ps x | grep "program_name" }
>
> but this will ALWAYS return TRUE [from grep]. How to deal with this??
> --
> [EMAIL PROTECTED]
> http://www.geocities.com/PicketFence/1913/
>
> "I am not going to be happy until my living room looks like NORAD"
>