*       In-reply-to: <[email protected]>
*       References: <[email protected]> 
<[email protected]> 
<[email protected]> 
<[email protected]> 
<[email protected]>
Subject: Re (3): automating execution of script.

*       From: Andrei Popescu <[email protected]>
*       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 [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to