On Sun, Jan 30, 2000 at 02:21:25PM +0100, Gustav Schaffter wrote:
| SoloCDM wrote:
| > How do I issue a command that will prevent two possible executed
| > instances of the same program?
|
| Short answer: You can't. (At least AFAIK :-)
| Long answer: You can. Almost.
| You may create a shell scri
>My (slightly cheating and not at all thorough) way of doing it would be:
>
>#!/bin/bash
>[ -z `pidof mutt` ] && { mutt }
I gotta remember that pidof exists :-) :-) :-)
MB
--
e-mail: [EMAIL PROTECTED]
Bart: Hey, why is it destroying other toys? Lisa: They must have
programmed it to eli
* SoloCDM ([EMAIL PROTECTED]) wrote:
> How do I issue a command that will prevent two possible executed
> instances of the same program?
>
> Note: Detailed Documentation(s) and Sample(s) are more than welcome.
> When you reply to this message, please include
> the mailing list and my
>SoloCDM,
>
>Short answer: You can't. (At least AFAIK :-)
>
>Long answer: You can. Almost.
>
>You may create a shell script (I believe) or a Perl script (I know) that
>will use flock to verify that it is running in one instance only. The
>script may then execute your program, which (and this is th
SoloCDM,
Short answer: You can't. (At least AFAIK :-)
Long answer: You can. Almost.
You may create a shell script (I believe) or a Perl script (I know) that
will use flock to verify that it is running in one instance only. The
script may then execute your program, which (and this is the 'almost
How do I issue a command that will prevent two possible executed
instances of the same program?
Note: Detailed Documentation(s) and Sample(s) are more than welcome.
When you reply to this message, please include
the mailing list and my address.
***