LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 01-13-2004, 12:46 AM   #1
neranjana
Member
 
Registered: Jul 2003
Location: Sri Lanka
Distribution: Mandrake
Posts: 99

Rep: Reputation: 15
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
 
Old 01-13-2004, 06:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,521
Blog Entries: 51

Rep: Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need script to copy all files containing a certain string to a directory dc6463 Programming 21 04-18-2013 01:56 PM
starting script, init by copy/create file in (samba) folder? muab Linux - General 7 06-22-2005 06:02 PM
Shell script to copy file name with part of directory Transition Linux - General 5 01-18-2005 05:40 PM
FAM monitoring file opened/create/copy laikos Programming 0 03-07-2004 02:57 AM
how to write a script to create a directory mgam Linux - Newbie 1 10-29-2003 12:08 PM


All times are GMT -5. The time now is 01:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration