Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Old 05-04-2020, 01:37 PM
zum zum is offline
Registered User
Join Date: May 2020
Posts: 2
Python Scripting

Hi team,

I need some support to get WaitForString and Send line working. Synchronous and GetScriptTab and Clone lines work properly but after close session it does not send "ssh test_server" string to the screen. I tested the commands equivalents with visual B and works but not with python. Do I making or missing something? Im not getting any error mesaage.

# $language = "python"
# $interface = "1.0"

crt.Screen.Synchronous = True
object = crt.GetScriptTab()
cloneTab = object.Clone()
crt.Screen.WaitForString("> ")
crt.Screen.Send("ssh test_server")
Reply With Quote
Old 05-04-2020, 02:59 PM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,313
Hi zum,

I see several issues.

object = crt.GetScriptTab()
cloneTab = object.Clone()
cloneTab.Screen.WaitForString("> ")
cloneTab.Screen.Send("ssh test_server\r")
What are the results with the above three corrections?

VanDyke Software
Technical Support
(505) 332-5730

Last edited by bgagnon; 05-04-2020 at 03:01 PM. Reason: Color added
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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 09:03 PM.