[Chicago-talk] chown inside a script

Jay Strauss me at heyjay.com
Thu Dec 6 14:53:18 PST 2007

On Dec 6, 2007 3:57 PM, Brian Katzung <briank at kappacs.com> wrote:
> Jay et al,
> I'm not sure about the "easier" part, but I would probably do something
> like this:
> - Create a queue directory for each employee, e.g.
>        /some/path/closed/{emp1,emp2,emp3}
>   with access by managers (you)
> - When you "close" the employees' files in your app, save them to the
> appropriate employee queue
> - Have a root script monitor the queue tree (you could use "fam" (file
> alteration monitor) API or roll your own)
> - When plain files appear in the employee queues, the root script would
> move them to some standardized place (e.g. to ~emp/my_app_closed_files/)
> with appropriate checks for file (directory) types, name collisions,
> etc. and chown them.
>   - Brian

The queue part seems hard, but I'll look into the "fam" API and maybe
have a root script do the chown without the cgi.


More information about the Chicago-talk mailing list