Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-12-2013, 06:58 PM
thehawk thehawk is offline
Registered User
 
Join Date: Oct 2012
Posts: 7
How use Screen->Get() for a line that is off the screen

Hello,

I'm using SecureCRT version 6.2.2 with Active Perl Scripting.

I'm creating a script that grabs information from a remote router by connecting to the remote device via TELNET or SSH. When the "show" command is executed the output is longer than it can be displayed in a single window and the window starts scrolling up. As such, the Screen->Get(10,1, 10,10) for example no longer corresponds to the line I wanted to grab.

Since the lines I need are off the screen I tried to use negative lines for the numbers but for some reason it doesn't work.
I.E. I tried Screen->Get(-4,1 -4,10) but didn't work.

Can you please advise if there is a way to have the script grab the line number based on the number of lines that have displayed since the connection was established (not based on what's on the screen only) or is there a way to grab information that has already passed the screen?

Thank you,
Adrian
Reply With Quote
 

Tags
perl script , screen->get , scroll up


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