Find the answer to your Linux question:
Results 1 to 2 of 2
All, I've done my due diligence and searched google and this forum about how to save the output from telnet in a simple way. The purpose of my script will ...
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Posts
    37

    Expect and telnet scripts

    All,

    I've done my due diligence and searched google and this forum about how to save the output from telnet in a simple way. The purpose of my script will be to go into telnet and save the output from that telnet session into a file.

    anybody have any ideas?

    Thanks in advance!

    Jonathan

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Thus spake djcham:
    The purpose of my script will be to go into telnet and save the output from that telnet session into a file.
    There's your answer right there. Do this at the command line:
    Code:
    script -c telnet -f outputfile.txt
    For more information:
    Code:
    man script
    Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...