Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find out new and changed files 2

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
DE
Hi folks,

I wrote a script that beside many other things runs a certain system binary that changes and creates some files in a certain directory.

the directory is always the same. But the files being changed and created are always different and I don't know the exact file names.

Is there any way to extend the script so it will give me a list of the files that have been changed and created withing the specified directory as long as the binary mentioned above was running ?

Regards
Thomas
 
I'd recommend -mtime over -ctime. -ctime only reflects a change in the file's meta data (i.e. permissions, ownership, etc.) so is quite likely to remain unchanged even if the contents of the file have been updated. mtime (and -newer) reflects any change of the file's contents.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top