If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > how to find when file is modified by a user

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-04-04, 16:37
skd skd is offline
Registered User
 
Join Date: Sep 2003
Posts: 71
Question how to find when file is modified by a user

Looking for how to find if an user modifying file?

i have tried something as below but it doesn't tell who is user of file( not looking for owner)
================================================== ========

find /home/usr -name "[A-Z][A-Z]" -type d -exec basename {} \; > state_list
#how to exclude entry like SS, TT in file state_list ??
while read x
do
for y in `find /home/usr/${x} -name "STATS.[A-Z]*" -mtime 0 -print|sed '/TEST/d'|grep -v [a-z]|grep -v [0-9]`

#filename is STATS.${county} where county is ALPHA string

do
echo file $y has been modified|mailx -s "stats file" ${mail_list}
done
done < state_list

================================================== ========
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On