LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-14-2002, 03:06 AM   #1
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
a daemon script


I've written a small script that parses a user's history file and looks for keywords like "nmap" & "su" and then emails a list to root.

I'd like to have a daemon that watches for these keyword and then log them to a file (which could also be emailed to root).

I've downloaded daemon-0.5, which is used to daemonize processes. Now I'm wondering how I can setup a process to watch user input on the command line and then log them. Maybe append the last command used in their history, but if the user know that I'm logging their commands then they could point the .bash_history file to NULL. Is there another to get around this?

- robeb
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run my bash script as a daemon. jaimese Linux - Newbie 12 02-10-2011 03:28 PM
daemon Shell Script abdul_zu Linux - Newbie 10 10-10-2005 10:13 AM
Iptables daemon script disappeared hbrandao Linux - Security 1 08-04-2004 07:14 PM
Script to check daemon lwsivad Linux - Newbie 3 11-04-2003 03:08 PM
Running script as daemon StinkyFinger Linux - Newbie 2 08-28-2003 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:34 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