Andrei Popescu wrote:
> Bob Proulx wrote:
> > Better to do it elsewhere rather than from your ~/.bashrc file.
> > 
> > > while "1" do
> > >  if (inotifywait -e modify ~/control.sh) = 0 
> > >    then { chmod u+x ~/control.sh; ~/control.sh; } > ~/controlresult 
> > >  fi
> > > done &
> 
> # apt-get install incron
> $ incrontab -e
> #
> /home/pe/control.sh IN_MODIFY /home/pe/bin/do_stuff

A much better suggestion than mine!  I like it.

Bob

Attachment: signature.asc
Description: Digital signature

Reply via email to