LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   terminal history logging (https://www.linuxquestions.org/questions/linux-general-1/terminal-history-logging-16198/)

alue 03-13-2002 02:16 PM

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

keeperx 03-13-2002 02:19 PM

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

keeperx 03-13-2002 02:20 PM

oops like this
 
the format is actually this

command options > filename

alue 03-13-2002 02:36 PM

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

alue 03-15-2002 01:59 AM

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


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