Re: Gracefull Exit
Posted in 1995
Topics: General Discussion
Your script has to check two things before to kill the process: 1.Check the 3rd-position flag of the tbstat -u output. If the process flag is X, do not kill it. 2.Check the address of the process in not listed at the owner of any latch. (use tbstst -s) Otherwise, the database may crashed! Regards! William Zhu On Wed, 11 Jan 1995, Clem Akins wrote: } } > I would also be interested in an application that will cause } > user's to exit an application gracefully after being } > inactive for a certain period of time. } > } > Also, anyone know how I go about getting a promo copy of } > INFORMIX's-NewEra? Since I work for the Government, we don't } > have much contact to the "outside world". } > } > TIA } > Sheltra_Reggie_J@emh-l.submepp.navy.mil } } We use a simple shell script which monitors the "idle" time in the } w command and kills the application part (not the sqlturbo part!) } of the users process. I don't remember if we do it, but it would } be trivial to send a clear screen and a "you've been terminated" } message to the tty to let the user know. } } That's the fast way. Since it's for the gub-ment I could compile } it into a 5 or 6MB executable and price it at about $100,000. :) } } Good luck, } __________________________________________________________________ } | Clem Akins Standard Disclaimers Apply | } |Reynolds Metals Co, Alloys Plant "Climb High, Cave Deep!" | } | Muscle Shoals, Alabama USA cwakins@leia.alloys.rmc.com | } |________________________________________________________________| }