Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-24-2020, 09:03 AM
mohenoun mohenoun is offline
Registered User
 
Join Date: Nov 2020
Posts: 21
Sending exit but on the prompt on some equipments it show "xit"

Hello,

I'm facing a strange issue.

I'm using this combined to a script I made.

And it works fine, but for some equipments in my list, it sends "xit" instead of "exit"*

Is there a way to fix that?

I'm using this on Cisco routers/switches.

Kind regards,

crt.Screen.Send "show run" & vbcr
crt.Screen.WaitForString " --More-- "
crt.Screen.Send " "
crt.Screen.WaitForString " --More-- "
crt.Screen.Send " "
crt.Screen.WaitForString " --More-- "
crt.Screen.Send " "
crt.Screen.Send vbcr
crt.Screen.Send "exit" & vbcr
Reply With Quote
  #2  
Old 11-24-2020, 09:47 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,520
Hi mohenoun,

Do you have a crt.Screen.Synchronous = True statement in the script?

At the end, you have three Send() calls without any intervening WaitForString().

I believe we covered how it is a best practice to do so in this other forum thread we have together.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 11-24-2020, 09:50 AM
mohenoun mohenoun is offline
Registered User
 
Join Date: Nov 2020
Posts: 21
Synchronous activated

Quote:
Originally Posted by bgagnon View Post
Hi mohenoun,

Do you have a crt.Screen.Synchronous = True statement in the script?

At the end, you have three Send() calls without any intervening WaitForString().

I believe we covered how it is a best practice to do so in this other forum thread we have together.
Yes the synchronous feature is activated
Reply With Quote
Reply


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 04:18 AM.