[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re(2): automating execution of script.



On Lu, 19 dec 11, 15:24:19, 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

Hope this helps,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Attachment: signature.asc
Description: Digital signature


Reply to: