LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Capturing screen data from non-Linux devices (https://www.linuxquestions.org/questions/linux-newbie-8/capturing-screen-data-from-non-linux-devices-463753/)

dbruso 07-13-2006 03:24 PM

Capturing screen data from non-Linux devices
 
All:

I am a relative newbie and apologize in advance if this is an overly simple question, but I haven't found the answer by searching the forums so here goes.

I work as a network engineer and spend a lot of my time telnetting of SSHing into routers and switches and firewalls-- non-Linux devices in other words. Often, I need to run a command on the network device and capture the output to a file so I can send it to a vendor or I need to document something. Is there a way to do this in bash? In the old days-- when I was running Windows-- I would use the PuTTY "logging" options to do this, but now I am normally working in bash terminal. What I have been doing is going to a Windows box to get my capture file, but this is not terribly convenient and I am pretty sure there is a better way.

I am running Fedora Core 4 and using the Gnome Terminal 2.10.0

Thanks in advance.

visaris 07-13-2006 05:09 PM

I would look into a different terminal application. There are many out there (konsole,aterm,eterm,xterm,etc) and I would not be surprised if there was one with logging ability. The only other option I can think of would be to simply copy and paste out of the terminal to a file.

dbruso 07-17-2006 06:07 PM

Answer Found
 
All:

I have found the answer to my problem. For any of you who are wonder how to do this, try the command script. This works on Fedora and probably other Red Hat oriented distros as well.

When the script command is invoked, it creates a file named typescript in your current directory and copies all screen (except passwords) to the file. To exit out of script, type exit.

There are a few options that you can use if you like. Check the man pages for script.

Thanks for the great support.

...Dale...


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