|
#1
|
|||
|
|||
SecureCRT Closure events
Hi All,
Not sure if this is in the correct section or not, so apologies in advance. I have written some software that automates the login process to certain network devices (username/passwords/hostnames etc) via the VB Scripting in SecureCRT. This works fine and I have incorporated an "exit" function, so when the user finishes their work, they can correctly log out of the device they're using. Unfortunately, if the user simply closes SecureCRT, the logout is no longer clean and occasionally we get stuck sessions. Is there a closure event in SecureCRT that I can force a logout script if a user simply hits the "x" to close the application? Or should this be done by scripting? Thanks Joel |
#2
|
|||
|
|||
Hello Joel,
You can prevent users from closing SecureCRT via the "red x" by changing the following entry in the Global.ini file. The Global.ini file is stored in the configuration folder. The location of your installation's Configuration folder is found in the General category of SecureCRT's Global Options. Please note: Close SecureCRT before editing the Global.ini file. Change: D:"Disable Close"=00000000 to D:"Disable Close"=00000001
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#3
|
|||
|
|||
Thanks for the response, however I'm not trying to stop them from closing the application, rather, ensure a script or closure event is run when they do.
|
#4
|
|||
|
|||
Hi Joel,
The option that Brenda suggested is not a way to stop the application from being closed. It is a way to stop the application from being closed while there is an active connection. Once the user has disconnected from the remote host, then they should be able to close SecureCRT normally. Does this help to clarify the option? If so, does this option meet your needs? |
#5
|
|||
|
|||
Thanks for the response Todd - it does clarify what was meant, but still does not do what I'm looking for.
Essentially, the user could hit the "Disconnect" button, which still forcibly closes the connection. What I'm looking for is upon disconnect/closure etc, either "Send x command prior to closing" or "run x script prior to closing" |
#6
|
|||
|
|||
Hi Joel,
With the option enabled, a user can't close SecureCRT with an active connection or disconnect the active connection unless they run a command in the terminal window or use a script to send the command to the terminal window. If you haven't tested this, I would suggest doing so to see if it meets your needs. Is the behavior I have described what you want, or do you actually want the end user to get prompted if they try to close SecureCRT or disconnect with an active connection? I ask because with the option enabled, they simply can't disconnect or close, but there is no feedback. |
![]() |
Thread Tools | |
Display Modes | |
|
|