Capture the telnet session output in file
I have number of ip listed in a text file and would telnet them on port 25 and exit if 220 banner if found.
I'm able to successfully run the script and get the output on tty, but I intend to capture the telnet session output in a file which i'm unable to do so either with script command or redirection.
Please assist me in with this problem.
Have you tried the 'tee' cmd http://linux.die.net/man/1/tee
Thank you chrism01,
i included the expect environment and executed the script
#except conn | tee out.txt
Now i'm able to get the output for future reference
|All times are GMT -5. The time now is 10:32 PM.|