I created a system of tracking background processes. I have a file PID,
which tracks everything. When a phantom is launched it updates itself in
the PID file via some routines I wrote to interact with this. I have a
command that will show the status of all things in the PID file. When
this
PORT.STATUS will let you know if a PHANTOM is
running, but you either
have to be root or you have to change the
permissions to allow you to
see this.
The Universe function GET.USERS will also let you know
if a phantom is running. It also has the advantage
that it won't give you the message:
, 2005 10:49 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [UD] BASIC LOCKs
PORT.STATUS will let you know if a PHANTOM is
running, but you either
have to be root or you have to change the
permissions to allow you to
see this.
The Universe function GET.USERS will also let
It is part of Universe. The source for that function
is in:
APP.PROGS under the name: GET.USERS.B
Its parameters are:
SUBROUTINE
GET.USERS(PI.USERS,MAX.PI.USERS,SYS.USERS,USER.INFO,
CODE)
The variable USER.INFO can be exploited thus:
NB.US = DCOUNT(USER.INFO,@AM) ;* Number of users
FOR
What version of Universe do you have that in? I don't have it! (v9.6)
Thanks,
Dianne
Jacques G. wrote:
It is part of Universe. The source for that function
is in:
APP.PROGS under the name: GET.USERS.B
Its parameters are:
SUBROUTINE
GET.USERS(PI.USERS,MAX.PI.USERS,SYS.USERS,USER.INFO,
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Anthony Dzikiewicz
Sent: Thursday, December 29, 2005 1:34 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [UD] BASIC LOCKs
I didn't know about GET.USERS. I did a HELP GET.USERS, HELP
BASIC GET.USER
This is good info.
I did some experimenting with it and I found that on one Linux system
the loop thru the USER.INFO shows all process running and on the other
Linux system the same program shows only 'me'. When I run this on the
Windows machine it show everything running. So, on two machines
The function is in APP.PROGS of 10.0.0 but we have a
client who has that version and it doesn't work on it.
Our clients that have 10.1.xx versions have it and it
is functionnal there.
--- Dianne Ackerman [EMAIL PROTECTED] wrote:
What version of Universe do you have that in? I
don't have it!
However on that same machine that shows only 'me', a
PORT.STATUS does
show everything ?
For PORT.STATUS it must have certain permission bits
set. (+s if I remember correctly) otherwise it only
shows the jobs of the user running PORT.STATUS.
It's quite possible that whatever program is
David,
I don't currently use a READU on my UD system to LOCK phantoms, but I use it
on UniVerse and it works unless you do an End Task on the UVSH process from
the windows console .. Then you have to do some syntax of the UNLOCK command to
fix things .. On my AIX machine, I use the listuser and
When the phantom dies the semaphore lock get released. We use this
mechanism for all of our background processes and it works like a champ.
Doug
www.u2logic.com
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Wolverton
Sent: Wednesday, December
Thanks for doing those tests - I just thought someone would have already
done them and spout from memory!
And really thanks for the validation - and I do think it bangs less on the
machine doing it this way.
But GOLLY I wish we had Cross-Process COMMON (and I wasn't even thinking of
MultiPlayer
We use READU locks - they're much more friendly than semaphores as they can be
given meaningful names that show up with a LIST.READU.
Also they are very quick and easy to test with the RECORDLOCKED() function -
eg.
IF NOT(RECORDLOCKED(filevar, recordname)) THEN ...
AdrianW
DISCLAIMER:
13 matches
Mail list logo