Re (2): incrontab usage
From: Andrei Popescu <andreimpopescu@gmail.com>
Date: Mon, 02 Jan 2012 11:44:48 +0200
> Do you have anything in syslog?
Nothing.
> Did you try running incrond with --foreground?
OK, that shows two problems.
With
peter@joule:~$ incrontab -l
/home/peter/test IN_MODIFY touch indicator
the result is
root@joule:/etc# /usr/sbin/incrond -nf /etc/incron.conf
touch: cannot touch `indicator': Permission denied
touch: cannot touch `indicator': Permission denied
and is fixed by giving a legal path to indicator.
peter@joule:~$ incrontab -l
/home/peter/test IN_MODIFY touch /home/peter/indicator
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?
Thanks, ... 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"
Reply to: