RE: [U2] [UD] BASIC LOCKs

2005-12-29 Thread Anthony Dzikiewicz
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

RE: [U2] [UD] BASIC LOCKs

2005-12-29 Thread Jacques G.
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:

RE: [U2] [UD] BASIC LOCKs

2005-12-29 Thread Anthony Dzikiewicz
, 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

RE: [U2] [UD] BASIC LOCKs

2005-12-29 Thread Jacques G.
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

Re: [U2] [UD] BASIC LOCKs

2005-12-29 Thread Dianne Ackerman
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,

RE: [U2] [UD] BASIC LOCKs

2005-12-29 Thread u2
- 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

RE: [U2] [UD] BASIC LOCKs

2005-12-29 Thread Anthony Dzikiewicz
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

Re: [U2] [UD] BASIC LOCKs

2005-12-29 Thread Jacques G.
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!

RE: [U2] [UD] BASIC LOCKs

2005-12-29 Thread Jacques G.
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

RE: [U2] [UD] BASIC LOCKs

2005-12-28 Thread Chuck Mongiovi
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

RE: [U2] [UD] BASIC LOCKs

2005-12-28 Thread D Averch
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

RE: [U2] [UD] BASIC LOCKs

2005-12-28 Thread David Wolverton
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

RE: [U2] [UD] BASIC LOCKs

2005-12-28 Thread Womack, Adrian
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: