Check if already logged on. (AREV Specific)
At 08 MAY 1999 05:07:00PM Barry Stevens wrote:
Could someone point me to where there might be some script/technique for checking that a user has not logged on more than once on the same pc i.e. prevent multi copies of arev running.
I seem to recall seeing discussion somewhere, but I thought it might have been on compuserve.
Running an NT network. Arev logon does not have different user names.
Barry
At 09 MAY 1999 04:40AM Jonathan Bird wrote:
Suggest that you set up a table with a record for each machine (could be done automatically), and lock the machine record in the Arev startup routines. Subsequent attempts to lock the same record would fail….
At 10 MAY 1999 05:20AM Tony Marler @ Prosolve wrote:
Barry
I think most people just check a local text file when logging in. Either check if it exists meaning I am already logged into Arev or check if the content is 1 for example. Then log off process just resets it.
Most also have a manual reset to delete/change file that is still around when it shouldn't be !
Hope this helps, Tony.
At 10 MAY 1999 08:50AM Barry Stevens wrote:
At 10 MAY 1999 12:03PM Victor Engel wrote:
I tried this technique. Unfortunately, there are system routines that do an unlock all, so this will not work.
At 10 MAY 1999 05:02PM Warren wrote:
Another method would be to create an Arev file and check it for the workstation id, if it is there already don't allow login, if not there, write a record using the station id as the key and continue. It would mean having to put a shell around the voc off/logoff entries to clear the item when the user logs out.
Problems? Abends and Windows crashes could leave the item in the file with the user out of the system.
Advantages: You could add login/out history, add a MFS and checksumming to prevent unauthorized users from tampering with the log items.
Now if you were running OS/2 as you desktops you could just change the icon property to switch to a current existing session rather than spawn a new one when clicked on, but then Win95 is so much better than OS/2 in every way I shouldn't mention it.
At 10 MAY 1999 08:51PM Victor Engel wrote:
I'm sure there's a way to do it in Windows95. I know little about Windows95, so how can I say this? Because I have built an interface between Arev and a Windows95 graphics program. When I navigate through a browse list in Arev, going from one graphics database entry to another, a graphics viewer is called (PCPERFORMed) with the name of the picture as an argument. The reason I picked the viewer I used was partly because when I called it, it used the existing instance of itself and simply unloaded the old picture and loaded the new one. Using whatever technique was used in that program, one could put a shell around Arev entirely. Surely there's a Window95 guru on the board who can explain how to do this.
At 10 MAY 1999 09:34PM Warren wrote:
Some Windows programs behave that way, some don't. Some behave both ways. It depends on how they are written. Quarterdeck's Zip-it (their version of WinZip) will sometimes open another zip file within itself, sometimes it will spawn a new session of itself. There's no option that I can find in the program itself to control this.
I'm sure it can be done, but to get a DOS session to do it probably involves writing a shell program or assembler/C++ interface that punches the correct WinAPI or DOS/WIN/BIOS interrupt or service.
Nothing simple like just checking an option on the icon properties.
At 11 MAY 1999 11:21PM Jonathan Bird wrote:
What system routines do this? I've not encountered any, and I have the locking method used at several customer sites, so I'm keen to know
J
At 12 MAY 1999 08:52AM amcauley@sprezzatura.com onmouseover=window.status=why not click here to send me email?;return(true)", [url=http://www.sprezzatura.com" onMouseOver=window.status=Why not click here to visit our web site?';return(true)]Sprezzatura Group[/url] wrote:
Really only exiting the debugger to the best of my knowledge (apart from things you'd expect to like LOGTO and such).
amcauley@sprezzatura.com
World Leaders in all things RevSoft
At 12 MAY 1999 10:55AM Victor Engel wrote:
You may wish to view this previous thread on the same issue.
At 12 MAY 1999 02:35PM Warren wrote:
The RESET verb in HR-1 systems do an UNLOCK ALL if I'm not mistaken. RESET in HR-1 did quite a few things more than the vanilla RESET in ARev.