Index:
[thread]
[date]
[author]
[stats]
From: markus schnalke <meillo@marmaro.de>
To : <masqmail@marmaro.de>
Date: Wed, 22 Feb 2012 17:27:32 +0100
Re: [masqmail] Debugging pipe calls
[2012-02-22 12:55] "Sebastian M. Alvarez" <sebastianmalvarez@gmail.com>
>
> The pipe I'm using works fine when running it from bash... But when
> masqmail pipes the email to that script, apparently the script dies
> at some point and never returns, and a masqmail process runs there
> forever...
>
> Is there a way to debug that pipe call?
You can, of course, set `debug level = 6' in the main conf and go
through /var/log/masqmail/debug.log then.
> I've tried setting as pipe, the script call and adding "&> /tmp/file"
> but nothing is printed to /tmp/file
>
> default.route file looks like:
>
> protocol=pipe
> pipe="/usr/bin/php /home/ubuntu/Olapic/olapic/Hermes.php --execute
> EmailUploader &> /tmp/emailjob"
Have you tried a simple shell script? Something like:
#!/bin/sh
( date; echo "$0"; echo "$@"; cat ) >>/tmp/foo
Does that work as expected?
Hope that helps.
meillo
P.S.
> Córdoba, Argentina
Saludos a Argentina. :-) Cuanto calor tienen en Cordoba hoy? Y sabes
lo de Santiago del Estero tambien?
Index:
[thread]
[date]
[author]
[stats]