Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
capture console to text file
Name: vvume Date: March 23, 2007 at 05:45:09 Pacific OS: RH 8.1 CPU/Ram: dunno Product: dunno
Comment:
I want to be able to toggle capture the console output to a text file since my putty does not show history beyond a few pages. How do I do this?
Name: jefro Date: March 23, 2007 at 15:14:37 Pacific
Reply:
3.2 Creating a log file of your session
For some purposes you may find you want to log everything that appears on your screen. You can do this using the ‘Logging’ panel in the configuration box.
To begin a session log, select ‘Change Settings’ from the system menu and go to the Logging panel. Enter a log file name, and select a logging mode. (You can log all session output including the terminal control sequences, or you can just log the printable text. It depends what you want the log for.) Click ‘Apply’ and your log will be started. Later on, you can go back to the Logging panel and select ‘Logging turned off completely’ to stop logging; then PuTTY will close the log file and you can safely read it.
See section 4.2 for more details and options.
I read it wrong and answer it wrong too. So get off my case you goober.
Summary: Use Perl or Awk, skipping the previous number of lines until you get to the line number you require. In Perl try: #!/usr/bin/perl open(IN,"file")|| die "Couldn't open file $!"; $x=1; LOOP:while($_=) ...
Summary: A text file is to be displayed by many users which starts a line "Dear Mr. ". User name is stored in an environment variable. How can I access this variable in specified text file so that every user h...
Summary: I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags. But I want to extract only text part. Same problem happens in "type" command in MS-DOS. I kno...