🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18030

Re: How do I tell if program is already running before launching new instance?

#18030
From: fear1
Date: Sat, 22 Aug 1998 00:00
10 lines
1106 bytes
You will need some IPC method, I suggest sockets.  The program could
check for an active socket on another instance of the program before
jumping into any critical operations.

Will Williamson wrote:
> 
> Is there a way to tell if an instance of a program is running in memory
> before launching a new instance of the program.  I need to make sure that
> only 1 copy of the program is allowed to run on a computer.  - Will
> Williamson - Cherry Valley Networking.
Technical Details
Message-ID: <35DEF96F.EEC43EBE@home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <%4FC1.435$nY4.118030420@newsreader.digex.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,536dcd289ca6281f
X-Google-Attributes: gidf74b3,public
From: fear1 <fear1@home.com>
Subject: Re: How do I tell if program is already running before launching new  instance?
Date: 1998/08/22
Message-ID: <35DEF96F.EEC43EBE@home.com>
X-Deja-AN: 383679445
Content-Transfer-Encoding: 7bit
References: <%4FC1.435$nY4.118030420@newsreader.digex.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: @Home Network
MIME-Version: 1.0
NNTP-Posting-Date: Sat, 22 Aug 1998 10:03:21 PDT
Newsgroups: borland.public.jbuilder.java.language