[CentOS] Screen capture in Terminal
I don't see how to do it. I had to telnet into a firewall and run a trace, and I had to stop it, copy and paste to gedit, then start again, etc. I find it interesting, and sad, that there is no easy 'output to file' profile setting. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Screen capture in Terminal
On 12/10/2009 08:05 AM, Robert Moskowitz wrote: I don't see how to do it. I had to telnet into a firewall and run a trace, and I had to stop it, copy and paste to gedit, then start again, etc. I find it interesting, and sad, that there is no easy 'output to file' profile setting. man script ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Screen capture in Terminal
On Thu, Dec 10, 2009 at 08:05:06AM -0500, Robert Moskowitz wrote: I don't see how to do it. I had to telnet into a firewall and run a trace, and I had to stop it, copy and paste to gedit, then start again, etc. I find it interesting, and sad, that there is no easy 'output to file' profile setting. Would script take care of it for you? John -- I want a government small enough to fit inside the Constitution. -- DownsizeDC.org co-founder Harry Browne (1933-2006) pgp6uVCxljWxq.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Screen capture in Terminal
Rick Barnes wrote: On 12/10/2009 08:05 AM, Robert Moskowitz wrote: I don't see how to do it. I had to telnet into a firewall and run a trace, and I had to stop it, copy and paste to gedit, then start again, etc. I find it interesting, and sad, that there is no easy 'output to file' profile setting. man script Hi all. I'm new on this list but I think this might help. If you start screen first, enable logging (default ^a H) then run telnet and your commands, it will create a screenlog.X (where X is the screen number) file. Mileage may vary depending on how the data is being output to the terminal but it's worth s try. -- Never trust a computer you can't throw out a window. - Steve Wozniak ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Screen capture in Terminal
Rick Barnes wrote: On 12/10/2009 08:05 AM, Robert Moskowitz wrote: I don't see how to do it. I had to telnet into a firewall and run a trace, and I had to stop it, copy and paste to gedit, then start again, etc. I find it interesting, and sad, that there is no easy 'output to file' profile setting. man script That saves the whole session and is sometimes useful. But, usually with command line programs you would just redirect the individual command's output to a file with ' filename' on the command line, or pipe through tee '|tee filename' if you want to see it at the same time. Also, the terminal windows have a fairly big scroll-back buffer which you can increase with edit/profile so if you do decide to copy something after it happens you don't have to stop while it is still showing. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Screen capture in Terminal
Mark Caudill wrote: Rick Barnes wrote: On 12/10/2009 08:05 AM, Robert Moskowitz wrote: I don't see how to do it. I had to telnet into a firewall and run a trace, and I had to stop it, copy and paste to gedit, then start again, etc. I find it interesting, and sad, that there is no easy 'output to file' profile setting. man script Hi all. I'm new on this list but I think this might help. If you start screen first, enable logging (default ^a H) then run telnet and your commands, This sounds like what I am looking for, where is it documented? it will create a screenlog.X (where X is the screen number) file. Mileage may vary depending on how the data is being output to the terminal but it's worth s try. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Screen capture in Terminal
Les Mikesell wrote: Rick Barnes wrote: On 12/10/2009 08:05 AM, Robert Moskowitz wrote: I don't see how to do it. I had to telnet into a firewall and run a trace, and I had to stop it, copy and paste to gedit, then start again, etc. I find it interesting, and sad, that there is no easy 'output to file' profile setting. man script That saves the whole session and is sometimes useful. But, usually with command line programs you would just redirect the individual command's output to a file with ' filename' on the command line, or pipe through tee '|tee filename' if you want to see it at the same time. I use that a lot, but it doesn't work for telnet. Also, the terminal windows have a fairly big scroll-back buffer which you can increase with edit/profile so if you do decide to copy something after it happens you don't have to stop while it is still showing. This last case it was ~4000 lines worth, the default is 500. And I did not know it was that much until I started dealing with the debug dump. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Screen capture in Terminal
Robert Moskowitz wrote: Mark Caudill wrote: Rick Barnes wrote: On 12/10/2009 08:05 AM, Robert Moskowitz wrote: I don't see how to do it. I had to telnet into a firewall and run a trace, and I had to stop it, copy and paste to gedit, then start again, etc. I find it interesting, and sad, that there is no easy 'output to file' profile setting. man script Hi all. I'm new on this list but I think this might help. If you start screen first, enable logging (default ^a H) then run telnet and your commands, This sounds like what I am looking for, where is it documented? Mainly in man screen. Just do this though (this will work if you have a stock install and no custom .screenrc): 1) yum install screen # Install screen 2) screen # Start screen 3) Press Ctrl-a then H # This starts logging the current window (should be 0) 4) telnet firewall # Log in to your firewall 5) Ctrl-a H again # Run this once you're done on the firewall to close the log 6) exit # Exits screen 7) less screenlog.0 # View your screenlog. -- Never trust a computer you can't throw out a window. - Steve Wozniak ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos