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 |
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 |
oops like this
the format is actually this
command options > filename |
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 |
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 04:59 AM. |