LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 03-13-2002, 02:16 PM   #1
alue
LQ Newbie
 
Registered: Feb 2001
Posts: 3

Rep: Reputation: 0
terminal history logging


Hello,

Is there a command to log what passes through your terminal screen? Here's how my problem comes up: I need to access a database through a telnet session and then a java wrapper; when I retrieve the records in a table of the database, I see about 1 million lines flash across the screen, and I can't read anything but the last 100-some lines.

The db wrapper API is not very complex, so I believe the best way to view all of that data is to just save the output of the telnet session into a file. Does anyone have any idea how to do that?

Alan
 
Old 03-13-2002, 02:19 PM   #2
keeperx
LQ Newbie
 
Registered: Mar 2002
Location: Maryland
Distribution: Redhat 7.2
Posts: 3

Rep: Reputation: 0
send it to a file

You can pipe the output of any command to a filelike this

ps -aux > filename

and then edit "filename" and there ya go
 
Old 03-13-2002, 02:20 PM   #3
keeperx
LQ Newbie
 
Registered: Mar 2002
Location: Maryland
Distribution: Redhat 7.2
Posts: 3

Rep: Reputation: 0
oops like this

the format is actually this

command options > filename
 
Old 03-13-2002, 02:36 PM   #4
alue
LQ Newbie
 
Registered: Feb 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, that works. =)

I do recall there being some command, though. It would be more convenient, since in piping the output (1) I can't read the telnet output (which is important, since I need to respond to prompts and (2) my input doesn't get piped.

Thanks,
Alan
 
Old 03-15-2002, 01:59 AM   #5
alue
LQ Newbie
 
Registered: Feb 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Answer

I've found the answer; turns out the command is "script", so type up "man script" to figure out how it works.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging on as root from The Terminal bobbasic2002 Linux - General 3 03-16-2014 06:44 PM
Gnome terminal command history problem ssrini *BSD 1 07-26-2005 09:55 AM
Prevent history logging new@linux Linux - Newbie 3 03-08-2005 11:26 PM
logging a terminal session Louis_Carole Linux - Newbie 1 11-16-2004 03:28 PM
Terminal Command History? Allen614 Linux - General 3 01-14-2003 11:35 PM


All times are GMT -5. The time now is 07:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration