View Single Post
  #2  
Old 02-04-2013, 02:52 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,309
Hi PRZ,

You will need to enable Display logon prompts in terminal window in the Connection / Logon Actions category of SecureCRT's Session Options in order to suppress the pop-ups.

The documentation for ConnectInTab method (Help topic Scripting / Script Objects Reference / Session Object) includes an example that illustrates one way you might check the connection failure. It requires the second optional parameter be set to True.

In that example, the tab is just closed, but you could use the same idea to log the failure.

The "ConnectInTabToHost" example in our "script sticky" here includes a more robust way to handle possible connection failures.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote