Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable Closing Terminal Screen 2

Status
Not open for further replies.

joseph

Programmer
Jan 18, 2000
11
CA
Hi,
We're using ProcommPlus 4.8 on Win2K clients to telnet to LINUX RedHat and running Business Basic applications. Sometimes users are closing the ProcommPlus terminal screen or their computer is freezing so they're rebooting and that leaves a defunct process on LINUX which uses up a Business Basic license. We would like to disable closing the terminal emulator screen (from the "x" at the top right screen corner).
Is this possible?
Thanks,
Joseph
 
There's not really a good way to do this, but I have a couple small scripts on my site that you could use. Below is the discussion of them followed by link to the two scripts:

This short script can be run if you want to keep Procomm Plus from closing as it normally would when a user exits the program. All the script does is loop endlessly, but the fact it is running at all will cause a message box to be displayed when the program is told to shut down. This message box will ask if all active scripts should be closed. If the user answers yes, then Procomm Plus will exit. However if they answer no, the script (and Procomm Plus) will continue running. A second option is to use the set aspect control on command, which will keep a user from closing a script or Procomm at all, short of rebooting the machine.



 
Thanks Knob for your reply and code. I'm replying just now because I was waiting for the E-mail notification to see that I received a reply, but I forgot to turn it on. I want the users to exit Procomm if they're exiting through my BBx programs (which does a RELEASE and free's up the BBx license), but I want yuor script in all the other cases. Where do I put this script (which directory)?
Thaks,
Joseph
 
From Procomm's documention:

Code:
proc main
   when USEREXIT call Done ; Trap when user tries to exit script.
   while 1                 ; Loop forever.
      yield                ; Yield processing time
   endwhile
endproc

proc Done
   pwexit                  ; Close Procomm Plus.
endproc

In the Done proc, include code to terminate your session gracefully. i.e.

Code:
transmit "logout^m"

I believe you would want to save this in your procomm plus\aspect directory, and maybe set it up in your connection directory as the default script for that connection.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top