*       In-reply-to: <20111220205521.GJ3296@think.nuvreauspam>
*       References: <171057234.68576.57886@heaviside.invalid> 
<20111219184739.ge...@hysteria.proulx.com> 
<171057235.49702.39796@heaviside.invalid> 
<20111219222419.ga22...@hysteria.proulx.com> 
<20111220205521.GJ3296@think.nuvreauspam>
Subject: Re (3): automating execution of script.

*       From: Andrei Popescu <andreimpope...@gmail.com>
*       Date: Tue, 20 Dec 2011 22:55:21 +0200
# apt-get install incron
$ incrontab -e
#
/home/pe/control.sh IN_MODIFY /home/pe/bin/do_stuff

Simple solution to a simple problem.  Thanks.

root@joule:/etc# cat /etc/incron.allow
peter

peter@joule:~$ ls -l script
-rwx------ 1 peter peter 3607 Dec 21 11:06 script
peter@joule:~$ /home/peter/script
14
peter@joule:~$ incrontab -l
/home/peter/script IN_MODIFY /home/peter/script &> /home/peter/result

>From another system, ftp a fresh version of script.
peter@joule:~$ ls -l script
-rwx------ 1 peter peter 3608 Dec 21 11:06 script

It should have been executed with the stderr and stdout 
put into result but it failed.  Any observations?

Thanks again,       ... Peter E.

 
 
-- 
Telephone 1 360 639 0202.  Former telephone 1 360 450 2132.  
bcc: peasthope ... shaw.ca
"http://carnot.yi.org/";
"http://members.shaw.ca/peasthope/index.html#Itinerary";


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/171057237.46803.28403@cantor.invalid

Reply via email to