Disabling Quit On Telnet
Scott Walker
scottw1 at alltel.net
Fri Apr 28 18:54:18 PDT 2006
On Fri, Apr 28, 2006, Scott Walker wrote:
>Was wondering how you guys handle this situation:
>
>Once a posting procedure has started I disable the break key with a
>"break off" in processing. That works fine if the user tries to press
><Del> in SCO Unix or <Ctrl><C> in Linux.
>
>But what if he takes his mouse and clicks on the "X" in the upper right
>hand corner of the Anziolite screen? Boom he's out, the posting
aborts,
>and I've got a mess...
Bill said:
On *nix boxes, you can put an appropriate ``trap'' statement in the
wrapper
that start's FilePro. This should do the trick someplace in the script
before it fires off the real FilePro binary.
trap '' 1 2 3 15
I first ran into this with RMCOBOL on Tandy Model 16s where breaking out
of
the program leaving the ISAM files in a mess.
That might not take care of the total nuking of a session when Windows
crashes. I doubt that wrapping in ``nohup'' would help there. In a
database with transaction rollback, one could probably handle this by
catching the signal, and rolling back all transactions before exiting.
Bill,
I've got trap "" 1 2 3 in /etc/profile. Should that not be enough? I
don't see how this prevents the user from clicking on "X" & quiting the
telnet program while they are still posting.
I put trap "" 1 2 3 15 in my .profile and tried a posting routine. I
clicked on the "X" on Anzio & I it exited. My posting routine aborted &
was screwed up. Since no one else answered, maybe there is not solution
to this other than training users not to do it. That's a pretty poor
solution.
Regards,
Scott
More information about the Filepro-list
mailing list