![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to log DNS activity? | mbak | AIX | 3 | 02-13-2008 11:39 AM |
| activity on a file | Terrible | Shell Programming and Scripting | 2 | 08-13-2006 05:10 PM |
| Disk activity | tovohery | AIX | 3 | 08-01-2006 06:21 AM |
| logging users activity | dozy | UNIX for Dummies Questions & Answers | 6 | 12-28-2004 06:20 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
monitoring /tmp and /var/tmp for suspicous activity
Hello,
does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present? Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening |
| Forum Sponsor | ||
|
|
|
|||
|
I could think of this simple method
i=`ls -1 /tmp /var/tmp | wc -l` while [ true ] do sleep 1 j=`ls -1 /tmp /var/tmp | wc -l` if [ $j -gt $i ] then echo "A new file has been created" exit 1 fi done Regards JK |
|||
| Google The UNIX and Linux Forums |