LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2007, 01:12 AM   #1
jigneshs
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Rep: Reputation: 0
Capture/Record the shell session in Linux


How can I capture or record the output of screen in a file in LINUX.

I know that there is "script" command that does this, but this command is not working on my Linux m/c.

Is there any other way I can do this.
 
Old 06-13-2007, 01:52 AM   #2
cfaj
Member
 
Registered: Dec 2003
Location: Toronto, Canada
Distribution: Mint, Mandriva
Posts: 221

Rep: Reputation: 31
Quote:
Originally Posted by jigneshs
How can I capture or record the output of screen in a file in LINUX.

I know that there is "script" command that does this, but this command is not working on my Linux m/c.

What does "not working" mean?

What does happen?

Do you get any error messages? If you do, please post them.

What is m/c?

 
Old 06-13-2007, 09:04 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
You can run your shell in a screen session, and turn on logging. Depending on the terminal you are using, it may provide a scrollback buffer that can be copied to a file; I use this feature in konsole occasionally. I don't think script records output, only input.

When you say 'this command is not working on my Linux m/c', that should be a hint to you that it would be useful to those trying to help if you put your distribution(s) in your profile, or at least mention it specifically in your post.

--- rod.
 
Old 06-13-2007, 09:31 AM   #4
jigneshs
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cfaj

What does "not working" mean?

What does happen?

Do you get any error messages? If you do, please post them.

What is m/c?

On executing script command it displays:
script
ksh: script: not found

And the m/c is:
Linux SM1 2.4.21-40.EL-DPSA #1 SMP Mon Oct 23 11:06:45 KST 2006 i686 i686 i386 GNU/Linux
 
Old 06-14-2007, 09:00 AM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
ksh: script: not found
Either you don't have 'script', or it isn't installed anywhere in the $PATH.
--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture and record video from screen farqad Linux - Software 4 07-20-2011 03:55 AM
How do I capture/record streaming audio? AlanQ Linux - Software 7 01-18-2006 03:40 PM
capture/record all 'stuff' from ALSA driver to file fwelland Linux - Software 2 04-01-2005 08:38 AM
Capture support for dvd and video capture in linux is it even going to be real ever? maximalred Linux - Distributions 3 07-06-2003 07:29 PM
Any shell can record Keyboard input? yuzuohong Linux - General 3 03-26-2003 03:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration