val@wsccs.UUCP (Val Kartchner) (02/23/88)
Anyone out there know how to get Resident AST's running in your process? These AST's (Asynchronous System Traps) are like the CTRL-C/Y and the CTRL-T AST's. I'd like to have other control characters invoke *user*written* code to perform things. The specific thing that I want to do is have an AST run a user routine every 10 (or so) minutes to do some I/O. We have a watchdog program that logs users out after 20 minutes. A professor has a terminal in his office, and he sometimes leaves (in the middle of a large project) to help a student. The watchdog logs him out after 30 minutes of inactivity, and he has to start over again. Computing Services (Service? HA!) won't disable the watchdog on him, though they can disable it for specific users. ADMINISTRATION users, who thinks that the students are a bother, are immune. What I need is a resident AST that does I/O in the same process to keep the professor from being logged out. Any help would be appreciated. -- ---- /\ ---------------------------------------------------------------- /\/\ . /\ | Val Kartchner {UT@WSC} | This space / \/ \/\/ \ | #include <disclaimer.h> | intentionally blank ===/ U i n T e c h \===!ihnp4!utah-cs!utah-gr!uplherc!sp7040!obie!val=====
tada@athena.mit.edu (Michael Zehr) (03/01/88)
[question about how to have an AST perform I/O every 10 minutes to prevent a user from being logged out] I don't know the answer to your problem, but I hacked a cheap solution to a similar problem once. Write a short .COM file that waits 10 minutes, and then types a short file, and loops until Ctrl-Y is typed. I realize the user has to stop the application he's running and execute a COM file to do this, but it's easier than having to log in again. Hope this helps, and my apologies if you've thought of this and discarded it as not useful. ------- michael j zehr "My opinions are my own ... as is my spelling."
bob@trojan (Bob Firestine) (03/01/88)
In article <3334@bloom-beacon.MIT.EDU> tada@athena.mit.edu (Michael Zehr) writes: > >[question about how to have an AST perform I/O every 10 minutes to >prevent a user from being logged out] > Once upon a time I dealt with a fascist system manager, and found it necessary to circumvent his "autologout" program. I used a subprocess that periodically used f$getjpi to get information about the parent process. This caused an AST to be queued to the parent process, causing it to use CPU time. Therefore the parent process did not appear to be idle. I do not recall what info I requested about the process, and I'm not sure if it mattered. It may have been its CPU utilization. I doubt that I still have the command procedure I used. ------------------------------------------------------------------------------- Bob Firestine firestine@M_sjs.sdr.slb.com Schlumberger Technologies 1601 Technology Drive San Jose CA 95115 408-437-5216