LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Run script during file copy or create in directory (https://www.linuxquestions.org/questions/linux-general-1/run-script-during-file-copy-or-create-in-directory-134229/)

neranjana 01-13-2004 12:46 AM

Run script during file copy or create in directory
 
Hi

Can anybody tell me whether I can configure a specific directory (say /home/shared) so that whenever a file is copied or created in this directory, a script would run (say to change permission on that file so that everybody would have all permissions on this file)?

I know that you can configure crontab to run the script say every minute to chage the permissions on all the files in this directory.

Thanks

Neranjana

unSpawn 01-13-2004 06:57 AM

Can anybody tell me whether I can configure a specific directory (say /home/shared) so that whenever a file is copied or created in this directory, a script would run
Google for "Bubblegum" or changedFiles. Two different approaches, I guess using Bubblegum would be the easiest for you.


All times are GMT -5. The time now is 07:05 PM.