Re: Re(2): automating execution of script.
- From: Andrei Popescu <andreimpopescu@xxxxxxxxx>
- Date: Tue, 20 Dec 2011 22:55:21 +0200
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
- Follow-Ups:
- Re (3): automating execution of script.
- From: peasthope
- Re: Re(2): automating execution of script.
- From: Bob Proulx
- Re (3): automating execution of script.
- References:
- automating execution of script; was Re (3): automating x permission on a file.
- From: peasthope
- Re: automating execution of script; was Re (3): automating x permission on a file.
- From: Bob Proulx
- Re(2): automating execution of script.
- From: peasthope
- Re: Re(2): automating execution of script.
- From: Bob Proulx
- automating execution of script; was Re (3): automating x permission on a file.
- Prev by Date: kernel failure
- Next by Date: Re: Find which package has installed some file under /etc
- Previous by thread: Re: Re(2): automating execution of script.
- Next by thread: Re: Re(2): automating execution of script.
- Index(es):
Relevant Pages
|