Hi ,
How can I limit the number of instances of a process.
Thanks in advance,
Deepak
Printable View
Hi ,
How can I limit the number of instances of a process.
Thanks in advance,
Deepak
On Nov 11, 7:31*pm, Peerless <peerlessdeep...@gmail.com> wrote:[color=blue]
>
> How can I limit the number of instances of a process.[/color]
The easiest way to do it, is by using a lock file. Check for the
existance of the lock file when starting the program. If it's there,
exit. If it's not there, create it and continue.
/Reine
On Nov 11, 10:31*am, Peerless <peerlessdeep...@gmail.com> wrote:
[color=blue]
> Hi ,[/color]
[color=blue]
> How can I limit the number of instances of a process.[/color]
There's no one right way. What goes wrong if you have too many
instances?
DS