On 03/01/12 11:12, peasth...@shaw.ca wrote:

> The 2nd problem is more subtle.  
> peter@joule:~$ incrontab -l
> /home/peter/test IN_MODIFY touch /home/peter/indicator 2>&1
> gives 
> root@joule:/etc# /usr/sbin/incrond -nf /etc/incron.conf
> touch: cannot touch `2>&1': Permission denied
> touch: cannot touch `2>&1': Permission denied
> 
> touch takes an arbitrary number of file name arguments.  
> How can its output and errors be redirected?

I think you'll find that the command string is parsed directly by
incrond, not by a shell, so you don't get redirection. Try putting the
whole command in a shell script, and calling that.

Richard


-- 
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/4f03a8ac.5000...@walnut.gen.nz

Reply via email to