Re: problem with TWO scripts @ once

From: Lukas Jelinek - AIKEN <lukas_at_aiken.cz>
Date: Mon, 11 Jul 2011 16:00:48 +0200

I don't know what do you mean of a "chained event". Your example can't
work as you expect because incron doesn't monitor files which are not
present at the time when the incron table is loaded (additionaly, there
is no reliable way how to monitor event on such individual files because
an event may occur before incron would start monitoring the given file).
The only way how to process events on files that will be created in
future is to monitor their parent directory.

Lukas

> Individually, the scripts run just fine in incrond but as soon as I
> try and create and event chain I.E. File goes in one place which
> trigger incrond to move the file to another directory. Then when the
> new file is created via incrond and the python script in the NEW
> directory, incrond is supposed to be triggered 'from there' and fire
> off script #2.
> The failure occurs because incrond doesn't appear to be firing off the
> second script.
> NOTE: I and 'touch' a new file in the location of the second script
> and incrond WILL work that way, but not as a chained event.
> Any suggestions?
> incrontab -e
> /var/spool/asterisk/monitor/ IN_CLOSE_WRITE
> /home/prog-shit/watch-script2.py $#
> /home/nycnightgirls.com/telecomm/7185695555.WAV/ IN_CLOSE_WRITE
> /home/prog-shit/sendmail-script.py $#
> /home/nycnightgirls.com/telecomm/51668855555.WAV/ IN_CLOSE_WRITE
> /home/prog-shit/sendmail-script.py $#
Received on Tue Jun 05 2012 - 22:14:21 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 05 2012 - 22:14:21 CEST