file watcher job
I need a way to watch for a file and if the file exists run a script.
I think I have most of the pieces.
I am hoping to use cron to run a statement similar to this.
test -e $file
if test -e $file = 0
then execute script
fi
this doesn't seem to work though.
Can anybody tell me what I am doing wrong?
Thanks
|