• Subject: RE: How to tell if a program is active?
  • From: David Gibbs <dgibbs@xxxxxxx>
  • Date: Tue, 23 Nov 1999 12:56:41 -0600

Title: RE: How to tell if a program is active?

> I need to make sure that a particular program is running only
> once.  I do
> not want multiple occurrences of this program to be running. 
> I'm sure my
> mind is already on Thanksgiving time since I can't seem to
> figure out how I
> can check whether a certain program is active or not.  Can
> anyone help me?

Do you mean running once in the current job or running once in the entire system?

If you mean the current job, and you want to avoid recursion, then we use a technique that sends a message to the programs message queue ... if the queue is not active, then the program is not running in the current job.  If the message is received, then the job is active.


This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].