* From: Richard Hector rich...@walnut.gen.nz
* Date: Mon, 02 Jan 2012 23:42:28 +1300
... to catch new files, you'll need to monitor
the directory it will appear in.
Unfortunately, my testing didn't get it working reliably either ...
Now that it works, there is some documentation
* From: Richard Hector rich...@walnut.gen.nz
* Date: Mon, 02 Jan 2012 23:42:28 +1300
... to catch new files, you'll need to monitor
the directory it will appear in.
Unfortunately, my testing didn't get it working reliably either ...
Now that it works, there is some documentation
* From: Richard Hector rich...@walnut.gen.nz
* Date: Mon, 02 Jan 2012 23:42:28 +1300
Unfortunately, my testing didn't get it working reliably either ...
Try IN_CLOSE_WRITE rather than IN_MODIFY. In my cursory
tests it works here.
Thanks for suggesting the wrapper,... Peter
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 21
gives
root@joule:/etc# /usr/sbin/incrond -nf /etc/incron.conf
touch: cannot touch `21': Permission denied
touch: cannot touch
From: Richard Hector rich...@walnut.gen.nz
Date: Wed, 04 Jan 2012 14:17:32 +1300
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.
Yes that works;
On Du, 01 ian 12, 16:45:59, peasth...@shaw.ca wrote:
Moving on to more constructive efforts ...
peter@joule:~$ incrontab -l
/home/peter/test IN_MODIFY touch ~/indicator 21
Then according to my thinking, sending a fresh copy of test
to Joule using FTP, should trigger touch ~/indicator.
On 02/01/12 12:45, peasth...@shaw.ca wrote:
Moving on to more constructive efforts ...
peter@joule:~$ incrontab -l
/home/peter/test IN_MODIFY touch ~/indicator 21
Then according to my thinking, sending a fresh copy of test
to Joule using FTP, should trigger touch ~/indicator. If
there
From: Andrei Popescu andreimpope...@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
Moving on to more constructive efforts ...
peter@joule:~$ incrontab -l
/home/peter/test IN_MODIFY touch ~/indicator 21
Then according to my thinking, sending a fresh copy of test
to Joule using FTP, should trigger touch ~/indicator. If
there is no pre-existing indicator, then an empty file
9 matches
Mail list logo