LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-09-2005, 10:14 PM   #1
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Rep: Reputation: 30
logging a shell/bash session?


Hey,

Frequently, while installing software and such, I have the desire to log an entire bash/shell session, so that I can go back and document what I did.

How can this be accomplished?

Thanks!
Justin
 
Old 04-09-2005, 10:16 PM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

just run history in that shell after u arer finished
and u will get a list of all the commands

regards
 
Old 04-09-2005, 10:23 PM   #3
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
Sure, but that's not going to let you see the output. I guess should make it clear that I need to see the output, also. That's important for long scripted sessions or reviewing a log compilation.
 
Old 04-09-2005, 10:27 PM   #4
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 47
This may help. If that is what your asking...

http://learn.clemsonlinux.org/wiki/Standard_output

KC
 
Old 04-09-2005, 10:34 PM   #5
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
kencaz, the irony in your signature makes me laugh. RTFP!

You guys need to READ the post before you reply! As I said, I need to log an entire bash/shell session. Input, output, everything!

Kencaz, you can't just redirect bash... you wouldn't be able to read the output... try `bash >> bash.log`... no go!

I finally found a solution on my own...

type `man script` for a solution.
 
Old 04-09-2005, 10:52 PM   #6
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
yes thats is good option

i myslef was looking for something like this

regards
 
Old 04-09-2005, 11:34 PM   #7
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
Feel free to click the Thanks button.

j/k :]
 
  


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
logging off by script or finding PID of session bob_man_uk Red Hat 6 10-27-2005 03:37 AM
X Terminal Session Logging phiw1123 Linux - Software 1 04-26-2005 03:15 PM
logging a terminal session Louis_Carole Linux - Newbie 1 11-16-2004 03:28 PM
newbie - logging terminal session to a file captainObvious Linux - General 3 11-09-2004 09:37 AM
Bash New Session bendeco13 Linux - General 2 10-30-2004 04:33 AM


All times are GMT -5. The time now is 04:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration