× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: How to tell if a program is active?
  • From: Roger Boucher <RBoucher@xxxxxxxxxxx>
  • Date: Mon, 22 Nov 1999 11:47:01 -0800

Age old problem, and I'm curious to see what the incredible resources on
this list have as an answer to that question these days.  I imagine the
answer will be some API, but if you don't want to mess with APIs for some
reason, here are two other ways:

Two ways I know of...
1) IF you want to know if a particular JOB is running (I know you said
program) then WRKACTJOB OUTPUT(*PRINT) and then, well, yuck.
2) Lock some kind of object like a data area or something from inside the
program and then each time the program runs it will check to see if there is
already a lock on the object.


Hope that helps...


-----Original Message-----
From: Reger, Bill [mailto:breger@levitz.com]
Sent: Monday, November 22, 1999 8:34 AM
To: 'Midrange-L'
Subject: 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?

William K. Reger
Senior Project Manager
Levitz Furniture Corporation
Phone:  (561) 994-5114
E-mail:  breger@levitz.com <mailto:breger@levitz.com> 

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.