Hi All,
I have to maintain few servers and in those servers in a specific directory some special jobs keeps on running .......
The directory is having many kind of files like.....acd*, hud*, rca*....bla bla bla.......
My aim is that if due to any job-any time a file having initials like rca* occurs in that directory it automatically gets deleted at the same moment.....
Kindly suggest how to achieve this......thanx in advance..............
while inotifywait -m -e create /$HOME/ext/cbe/output/pps/normal/temp/
do
rm *.csv
done
but after 1 deletion the script is getting stopped.....I want the watchdog to be maintained, and it keeps on running in background until the process is killed manually....