Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] monitoring program
- To: tlug@example.com
- Subject: Re: [tlug] monitoring program
- From: Matt Doughty <mdoughty@example.com>
- Date: Mon, 18 Feb 2002 12:35:45 +0900
- Content-disposition: inline
- Content-transfer-encoding: 7bit
- Content-type: text/plain; charset=us-ascii
- In-reply-to: <20020218005210.2bcee0d9.oconnell@example.com>; from oconnell@example.com on Mon, Feb 18, 2002 at 12:52:10AM +0900
- Mail-followup-to: Matt Doughty <mdoughty@example.com>, tlug@example.com
- References: <20020213225851.5f736bfc.leyton@example.com> <F84cUFa4FtdNTXEnSxH0001d027@example.com> <20020213225851.5f736bfc.leyton@example.com> <4.3.2-J.20020215133620.00be4f00@example.com> <000001c1b6bd$bc080180$6f00a8c0@example.com> <20020217215115.B5757@example.com> <20020218005210.2bcee0d9.oconnell@example.com>
- User-agent: Mutt/1.2.4i-jp0
Yep, that in certainly consistent with my sense that there must be an easier way. I had been playing with fam, and aparently had it on the brain. Thanks for the much more sane suggestions. --Matt On Mon, Feb 18, 2002 at 12:52:10AM +0900, Jim O'Connell wrote: > Matt - > > How about the shell command "find"? > It has options for access time ( "-atime" ) and others - Let me paste a bit: > > -atime n > Find files that were accessed n days ago. +n means "find files that were accessed over n days ago" (i.e., not accessed in the last n days). -n means "find files that were accessed less than n days ago" (i.e., accessed in the last n days). See articles 17.5 and 17.7. > > -mtime n > Similar to atime, except that it checks the time the file's contents were modified. See articles 17.5 and 17.7. > > -ctime n > Similar to atime, except that it checks the time the inode (1.22) was last changed. "Changed" means that the file was modified or that one of its attributes (for example, its owner) was changed. See articles 17.5 and 17.7. > > -newer file > Find files that have been modified more recently than the given file. See articles 17.8 and 17.9. > > Once you've decided upon your command line, you can then put " >>/var/log/yourlogfile " onto the end to write the output to a log. > > The redhat man page lists also the option of "-amin" which is minutes - check your man page for your distro's version for a complete list. > > Personally, I like the idea of using "-newer" - that means find files modified after a certain file. What I would probably try if this were running on a schedule, is to have it find files modified after the log file itself. (Just be sure the file exists before you run it the first time - "touch /var/log/yourlogfile") > Using a simple shell script you also have the option of printing comments throughout the log file - Could be useful when you are reviewing it - > Hope this is of some use - > Jim > > > > > > It would be a pretty easy shell script to write, I think and quite customizable too. > > > On Sun, 17 Feb 2002 21:51:15 +0900 > Matt Doughty <mdoughty@example.com> wrote: > > > On Sat, Feb 16, 2002 at 03:15:58PM +0900, Pietro Zuco wrote: > > > Hi folks! > > > Are there some program to write a log of all the files access in some lap of > > > time? > > > I just need to know what files are accesss, write or read from one program > > > in a lap of time. > > > > > > Thankyou in advance :) > > > > > > Pietro > > > > Might be a simpler way to do this, but have a look fam: > > http://oss.sgi.com/projects/fam/ > > It should provide the functionality you need though it might > > be over kill. > > > > --Matt > > > >
- References:
- Re: [tlug] Nomikai Meeting Reminder
- From: Asa LIton
- Re: [tlug] Nomikai Meeting Reminder
- From: Jean-Christian Imbeault
- Re: [tlug] Nomikai Meeting Reminder
- From: BABA, Yoshihiko
- [tlug] monitoring program
- From: Pietro Zuco
- Re: [tlug] monitoring program
- From: Matt Doughty
- Re: [tlug] monitoring program
- From: Jim O'Connell
Home | Main Index | Thread Index
- Prev by Date: RE: [tlug] where did we go yesterday?
- Next by Date: [tlug] Login/SSH Scan Detection
- Previous by thread: Re: [tlug] monitoring program
- Next by thread: [tlug] Greetings
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links