Unix Technical Forum

Capturing text from console buffer ?

This is a discussion on Capturing text from console buffer ? within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi, When one asks a question on this forum, the usual response are very often. What did you type, ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:10 AM
Anton Erasmus
 
Posts: n/a
Default Capturing text from console buffer ?

Hi,

When one asks a question on this forum, the usual response are very
often.

What did you type, and what was the response.

How can one capture the input/output in the console buffer in a file
after one has typed commands and responses has been printed to
the console ? I.e. I want to save the contents of the console buffer
to a file.

Regards
Anton Erasmus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:10 AM
Jeroen Geilman
 
Posts: n/a
Default Re: Capturing text from console buffer ?

Anton Erasmus wrote:

> Hi,
>
> When one asks a question on this forum, the usual response are very
> often.
>
> What did you type, and what was the response.
>
> How can one capture the input/output in the console buffer in a file
> after one has typed commands and responses has been printed to
> the console ? I.e. I want to save the contents of the console buffer
> to a file.


man script

> Regards
> Anton Erasmus


Cool name, dude!


--
Jeroen Geilman

All your bits are belong to us.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 07:10 AM
Michael C.
 
Posts: n/a
Default Re: Capturing text from console buffer ?

On Mon, 29 Sep 2003 19:26:02 +0200,
Anton Erasmus <junk@junk.net> wrote:
> Hi,
>
> When one asks a question on this forum, the usual response are very
> often.
>
> What did you type, and what was the response.
>
> How can one capture the input/output in the console buffer in a file
> after one has typed commands and responses has been printed to
> the console ? I.e. I want to save the contents of the console buffer
> to a file.


man script

Michael C.
--
mcsuper5@usol.com http://mcsuper5.freeshell.org/
Registered Linux User #303915 http://counter.li.org/


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 07:10 AM
Peter T. Breuer
 
Posts: n/a
Default Re: Capturing text from console buffer ?

Anton Erasmus <junk@junk.net> wrote:
> How can one capture the input/output in the console buffer in a file
> after one has typed commands and responses has been printed to
> the console ? I.e. I want to save the contents of the console buffer


Copy and paste using the mouse.

> to a file.


Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 07:10 AM
Alan Connor
 
Posts: n/a
Default Re: Capturing text from console buffer ?

On Mon, 29 Sep 2003 19:26:02 +0200, Anton Erasmus <junk@junk.net> wrote:
>
>
> Hi,
>
> When one asks a question on this forum, the usual response are very
> often.
>
> What did you type, and what was the response.
>
> How can one capture the input/output in the console buffer in a file
> after one has typed commands and responses has been printed to
> the console ? I.e. I want to save the contents of the console buffer
> to a file.
>
> Regards
> Anton Erasmus


Here's another tool to toss in your box.

To take a screenshot of whatever is on a particular tty, as root do:

cat /dev/vcsN > file

Where N is the number of the tty. You could change the ownership of
/dev/vcs to use it(them) as a user.

--
Later, Alan C
You can find my email address at the website:
elrav1.html --> ACKNOWLDEGEMENTS/CONTACT (20k or less, plain text)
take control of your mailbox ----- elrav1 ----- http://tinyurl.com/l55a
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 07:10 AM
Bill Marcum
 
Posts: n/a
Default Re: Capturing text from console buffer ?

On Mon, 29 Sep 2003 19:26:02 +0200, Anton Erasmus
<junk@junk.net> wrote:
> Hi,
>
> When one asks a question on this forum, the usual response are very
> often.
>
> What did you type, and what was the response.
>
> How can one capture the input/output in the console buffer in a file
> after one has typed commands and responses has been printed to
> the console ? I.e. I want to save the contents of the console buffer
> to a file.
>
> Regards
> Anton Erasmus


If gpm is installed, you can copy and paste with the mouse.


--
Commander Spiral Pyjama Pseudo-Rhinocerous Feline Thingamajig Bill Marcum
(the First)
Ozy and Millie Name Generator http://heifong.phase.org/omname.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 07:11 AM
Anton Erasmus
 
Posts: n/a
Default Re: Capturing text from console buffer ?

On Mon, 29 Sep 2003 20:12:05 +0000, Jeroen Geilman
<nospam@notadaptr.nl> wrote:

>Anton Erasmus wrote:
>
>> Hi,
>>
>> When one asks a question on this forum, the usual response are very
>> often.
>>
>> What did you type, and what was the response.
>>
>> How can one capture the input/output in the console buffer in a file
>> after one has typed commands and responses has been printed to
>> the console ? I.e. I want to save the contents of the console buffer
>> to a file.

>
>man script
>
>> Regards
>> Anton Erasmus

>
>Cool name, dude!


Thanks for all the answers.
I think I'll try script first.

About the name. I think you are probably one of the few that can
actually pronounce it correctly. I sometimes get very odd
pronunciation from english speakers. Luckely not as bad as
a colleague whos surname is Drijfhout. For the english speakers
Drijfhout is pronounced with the "ij" portion as the "ay" in say, and
the "ou" as the 'o' sound in "hope".

Regards
Anton Erasmus

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com