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 08-10-2020, 11:18 PM
Afsar Afsar is offline
Registered User
 
Join Date: Aug 2020
Posts: 1
Try and Exception

Hi Team,

i want to use the try and except method in python by reading the screen's current line. If a screen's current line equals to "some string" it showl disconnect the session and close securecrt.

please help me on this
Reply With Quote
  #2  
Old 08-11-2020, 07:30 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,397
Hi Afsar,

What version of SecureCRT are you using?

Please elaborate on the problem you are trying to solve.

What do you mean by reading the screen's current line?

Would you be receiving only one line of output from a device and that is what is to be compared to "some string"?
__________________
Thanks,
--Brenda

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

Tags
#tryandexcept


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 08:09 AM.