Automagically apply chattr?

General support questions
Post Reply
jnojr
Posts: 133
Joined: 2007/11/29 23:42:03
Location: San Diego, CA
Contact:

Automagically apply chattr?

Post by jnojr » 2016/06/29 17:51:32

How can I automatically apply 'chattr +a' to any new files that are created in a given directory tree? A cron job feels like a cheap hack, and could run into some issues. I suppose I could use 'supervise', but I'd prefer an out-of-the-box answer.

gulikoza
Posts: 188
Joined: 2007/05/06 20:15:23

Re: Automagically apply chattr?

Post by gulikoza » 2016/06/30 18:41:19

inotifywait?

Post Reply