Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-14-2014, 04:21 PM
hellfire hellfire is offline
Registered User
 
Join Date: Oct 2012
Posts: 15
CRT closes host connection when closing tab

Good evening,

Im using CRT 6.5.1 for some time now and absolutelly love its flexibility, still ove got a small issue that i cant fix.

Giving some sence of context, Ive got a script that is loging-in to a remote host through a series of in-between hosts.

Previously it was an "ssh host1->telnet host2->telnet host3" path. Host1 stays the same, 2nd and third changes. Now i have to work with other scheme, "ssh host1->ssh host2->telnet host3", when host1 and host2 doesnt change, and host3 is varyable.

The problem is, if I do open multiple tabs to different host3 servers throught the same host2, when I close any of it, all other tabs got disconnected from host2. This is only true to ssh-ssh-telnet scheme, it doesnt disconnect when usin ssh-telnet-telnet.


Here is an example of what im talking about..
Run, %CRTClient% /SCRIPT somesxript.vbs /T /SSH2 /L %host1login% /PASSWORD %host1pass% %host1%

somesxript.vbs:
Code:
#$language = "VBScript"
#$interface = "1.0"
Sub main
crt.Screen.Synchronous = True
g_nDelay = 50		
crt.Screen.WaitForString "$ "
crt.Screen.Send "ssh %host2login%@host2" & vbCr
Dim result
result = crt.screen.WaitForStrings("assword:", "Last login:",10)
Select Case nResult
Case 0
 crt.Screen.Send "%host2pass%" & vbCr
Case 1
crt.Screen.WaitForString "$ "
End Select
crt.Screen.Send "clear" & vbCr
crt.Screen.Send "telnet%TelnetEchelon%.sh %host3% " & vbCr 
crt.Screen.WaitForString "ame:"
crt.Screen.Send "%host3login%" & vbCr
crt.Screen.WaitForString "ass"
crt.Screen.Send "%host3pass%" & vbCr
crt.Screen.Synchronous = False
End Sub
Sorry, i know its kinda unusual issue..
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 07:10 PM.