LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2012, 02:12 PM   #1
studym
LQ Newbie
 
Registered: Dec 2011
Location: California USA
Posts: 2

Rep: Reputation: Disabled
Print an expect script output


Hello all,
I have a expect script file. This file will give the output of some IOS commands ("show version", "show diag" and "show flash:"). Does anyone know how to print all these outputs? Thanks.
 
Old 01-03-2012, 04:50 PM   #2
0.o
Member
 
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Rep: Reputation: 35
Quote:
Originally Posted by studym View Post
Hello all,
I have a expect script file. This file will give the output of some IOS commands ("show version", "show diag" and "show flash:"). Does anyone know how to print all these outputs? Thanks.
It should print those by default. How are you calling the script?
 
Old 01-03-2012, 08:16 PM   #3
studym
LQ Newbie
 
Registered: Dec 2011
Location: California USA
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 0.o View Post
It should print those by default. How are you calling the script?
Hi O.o,
Thanks for your response. To call the script, I use the command "expect script.exp" under GNOME terminal. The output is seen from this terminal. I can't print those by default.
 
Old 01-04-2012, 06:06 PM   #4
0.o
Member
 
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Rep: Reputation: 35
Quote:
Originally Posted by studym View Post
Hi O.o,
Thanks for your response. To call the script, I use the command "expect script.exp" under GNOME terminal. The output is seen from this terminal. I can't print those by default.
What do you mean by print? Where are you trying to print them to? The screen? A file?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using an expect Script to send the output of cat and append it to a file spoofedexistence Programming 1 09-29-2009 03:50 PM
expect script output don___quixote Linux - Newbie 5 07-06-2009 09:24 AM
expect script output saltydog4791 Programming 1 05-27-2008 08:01 AM
problem receiving output from Expect script slinx Linux - Software 4 04-30-2008 08:02 AM
Expect script - No output to file pandersson61 Programming 4 05-23-2007 05:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration