Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 11-07-2006, 03:04 PM
DennisT DennisT is offline
Registered User
 
Join Date: Nov 2006
Posts: 30
Disable the "X" in CRT?

Is there a way to disable the "X" (close window) in CRT? My users are causing problems with a legacy application when they don't log out via the application interface.
Reply With Quote
  #2  
Old 11-07-2006, 03:47 PM
mekanik mekanik is offline
Registered User
 
Join Date: Jul 2005
Posts: 46
What about using the option: "Show confirm disconnect dialog" under "Global Options > General"

This will display a pop-up box advising "Do you wish to disconnect from [session name]?". If the user clicks on Yes, then SecureCRT should send a TCP packet with the FIN flag set to the host on which the session is trying to be closed on, thus closing the TCP socket correctly instead of leaving it hung (since it sounds like your legacy app doesn't support TCP keepalives). If the user clicks on No, then the session will resume as normal. [If memory serves me]

/mekanik/

Last edited by mekanik; 11-07-2006 at 03:53 PM.
Reply With Quote
  #3  
Old 11-07-2006, 03:55 PM
DennisT DennisT is offline
Registered User
 
Join Date: Nov 2006
Posts: 30
Actually the application is dumber than that. If the session is cut off the application still thinks someone is in the various files which causes problems with other users. It isn't that the host OS is leaving the session hung, it is the application. The "confirm disconnect" would help somewhat but not eliminate this problem.

Disabling the "X" would stop it for everything except Windows log off/reboots.
Reply With Quote
  #4  
Old 11-07-2006, 04:32 PM
mekanik mekanik is offline
Registered User
 
Join Date: Jul 2005
Posts: 46
Quote:
Originally Posted by DennisT
Actually the application is dumber than that. If the session is cut off the application still thinks someone is in the various files which causes problems with other users. It isn't that the host OS is leaving the session hung, it is the application. The "confirm disconnect" would help somewhat but not eliminate this problem.

Disabling the "X" would stop it for everything except Windows log off/reboots.
So are you saying that the application will not close the socket even when a TCP packet with the FIN flag set is sent? If that is the case, then you have a pretty poorly written application on your hands (sounds like you know that already though). The application should acknowledge the TCP/FIN packet and release the socket (again, you know this already).

I do not know your environment, but what about "task manager", TASKKILL and all the other options there are to terminate an application. Disabling the "X" is not the true solution, I would say an enforced policy would be more of a solution, but then you have to ensure that the political parties that be back you up on the enforcement. Still, "confirm disconnect" assists in this situation pretty well IMHO.

/mekanik/
Reply With Quote
  #5  
Old 11-07-2006, 04:41 PM
DennisT DennisT is offline
Registered User
 
Join Date: Nov 2006
Posts: 30
The application is a character based Unix app (ERP system). All TCP activity is handled by the OS (telnetd). The problem we have is that users close the CRT session via the "X" and not by exiting the app. When they click on the "X" CRT closes the session and Unix/telnetd kills the application. Unfortunately this leaves the app in a state where it still thinks files are in use (archaic design). This causes problems for other users later on.
Reply With Quote
  #6  
Old 11-07-2006, 05:04 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 1,099
Quote:
Originally Posted by DennisT
Is there a way to disable the "X" (close window) in CRT? My users are causing problems with a legacy application when they don't log out via the application interface.
There is a configuration that can be used to prevent users from closing the CRT/SecureCRT window via the 'X' button.

For more information on how to accomplish this task, please submit your request to our technical support department.

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support

Last edited by jdev; 11-13-2006 at 03:57 PM.
Reply With Quote
  #7  
Old 11-08-2006, 08:23 AM
DennisT DennisT is offline
Registered User
 
Join Date: Nov 2006
Posts: 30
Thumbs up

Jake,
Yes, that is exactly what I was looking for. Thanks
Reply With Quote
  #8  
Old 11-08-2006, 08:39 AM
mekanik mekanik is offline
Registered User
 
Join Date: Jul 2005
Posts: 46
Nice, thanks for the info Jake.

/mekanik/
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 02:38 AM.