Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2013, 03:46 PM
joneill joneill is offline
Registered User
 
Join Date: Oct 2011
Posts: 8
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
Reply With Quote
  #2  
Old 02-26-2013, 04:43 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
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
Reply With Quote
  #3  
Old 02-27-2013, 01:59 PM
joneill joneill is offline
Registered User
 
Join Date: Oct 2011
Posts: 8
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.
Reply With Quote
  #4  
Old 02-27-2013, 02:48 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,305
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?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #5  
Old 02-27-2013, 03:47 PM
joneill joneill is offline
Registered User
 
Join Date: Oct 2011
Posts: 8
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"
Reply With Quote
  #6  
Old 02-27-2013, 03:58 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,305
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.
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
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 12:28 PM.