LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-13-2006, 04:24 PM   #1
dbruso
LQ Newbie
 
Registered: Aug 2004
Location: California
Distribution: Fedora Core 5
Posts: 21

Rep: Reputation: 15
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.
 
Old 07-13-2006, 06:09 PM   #2
visaris
Member
 
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
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.
 
Old 07-17-2006, 07:07 PM   #3
dbruso
LQ Newbie
 
Registered: Aug 2004
Location: California
Distribution: Fedora Core 5
Posts: 21

Original Poster
Rep: Reputation: 15
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Capturing some data from a file into a variable shiroh_1982 Linux - Newbie 3 06-16-2006 06:59 PM
Capturing game (full)screen on linux ReefShark Linux - Games 4 07-29-2005 06:49 AM
Capturing FTP data on wireless ravigupta Linux - Wireless Networking 0 04-17-2005 08:24 AM
Capturing raw mouse data pld Linux - Software 4 04-11-2004 09:13 PM
Capturing tty data to a file svaujin Linux - Newbie 2 04-03-2001 10:53 AM


All times are GMT -5. The time now is 04:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration