Re(2): incrontab usage

2012-01-09 Thread peasthope
* 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

Re(2): incrontab usage

2012-01-09 Thread peasthope
* 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

Re (4): incrontab usage

2012-01-04 Thread peasthope
* 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

Re: Re (2): incrontab usage

2012-01-03 Thread Richard Hector
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

Re (3): incrontab usage

2012-01-03 Thread peasthope
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;

Re: incrontab usage

2012-01-02 Thread Andrei Popescu
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.

Re: incrontab usage

2012-01-02 Thread Richard Hector
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

Re (2): incrontab usage

2012-01-02 Thread peasthope
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

incrontab usage

2012-01-01 Thread peasthope
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