LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Print an expect script output (https://www.linuxquestions.org/questions/linux-newbie-8/print-an-expect-script-output-921838/)

studym 01-03-2012 02:12 PM

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.

0.o 01-03-2012 04:50 PM

Quote:

Originally Posted by studym (Post 4565010)
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?

studym 01-03-2012 08:16 PM

Quote:

Originally Posted by 0.o (Post 4565125)
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.

0.o 01-04-2012 06:06 PM

Quote:

Originally Posted by studym (Post 4565249)
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?


All times are GMT -5. The time now is 06:13 AM.