LinuxQuestions.org
Help answer threads with 0 replies.
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 09-13-2004, 08:11 PM   #1
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Looking for a shell logger


Hi all,

I was wondering if there's already a tool to log a shell session to a unique file? I want to keep track of what I do in certain sessions, and bash's history isn't up to the task. I want to log stdin, stdout and stderr if possible.

What I would like best would be a program that can create a log file like this:

Code:
/home/cromagnon/log-20040914-1302:
[bash]$ touch test1
[bash]$ touch test2
[bash]$ ls
test1     test2
[bash]$ make
make: *** No targets specified and no makefile found.  Stop.
[bash]$
I can whip up a shell command to create the filename myself if necessary, but does a tool exist for this?
 
Old 09-13-2004, 09:40 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
In the Advanced Bash-Scripting Guide, section 16-11, there's a sample bash script that might suit your needs, with appropriate modification.
 
  


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
Starting system logger:!?!? iansoundz Linux - General 1 08-30-2005 08:02 PM
Can't locate OSCAR/Logger.pm in @INC mijohnst Linux - Software 3 05-17-2005 05:15 PM
keystroke logger??? paugros Linux - Security 18 03-24-2005 12:06 PM
personalised logger - need some help chrisfirestar Linux - General 1 03-05-2004 01:50 AM
Key Stroke Logger MrTheGeek Linux - Security 1 02-03-2002 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:31 PM.

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
Open Source Consulting | Domain Registration