Re: Prevent Two Instances

2000-01-30 Thread Cameron Simpson
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

Re: Prevent Two Instances

2000-01-30 Thread Vidiot
>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

Re: Prevent Two Instances

2000-01-30 Thread Tom Gilbert
* 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

Re: Prevent Two Instances

2000-01-30 Thread Vidiot
>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

Re: Prevent Two Instances

2000-01-30 Thread Gustav Schaffter
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

Prevent Two Instances

2000-01-30 Thread SoloCDM
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. ***