Re: Basic python script problem

From: <bcddd214_at_yahoo.com>
Date: Fri, 8 Jul 2011 15:30:09 +0000

Weird python anomaly. She works fine now!
I 'had' a permission error, found it in the logs. Fixed it.
It was still failing
executed the script from a few 'different' directories and got a weird smtp error and then she just started working.
No clue
Sent via BlackBerry from T-Mobile

-----Original Message-----
From: Lukas Jelinek - AIKEN <lukas_at_aiken.cz>
Date: Fri, 08 Jul 2011 16:29:21
To: <incron_at_aiken.cz>
Reply-To: incron_at_aiken.cz
Subject: Re: Basic python script problem

This should work and it works for me. Please provide the appropriate log
records (usually the lines from /var/log/cron.log with "incrond"; you
can use cat /var/log/cron.log | grep incrond to obtain them).

Lukas

> I am trying to launch a python script from incrond.
> I put the following in the incron-config file
> /var/spool/asterisk/monitor/ IN_CREATE
> /home/prog-shit/sendmail-script.py $#
> load the file and incrontab -e shows the config file registered.
> The script is supposed to email me when a file is created in the
> directory. The python script works perfectly when run manually.
> With incron configure, I 'touch /var/spool/asterisk/monitor/testfile1'
> and nothing happens, no error, no email, no impact, no idea.
> Suggestions?


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