Index: [thread] [date] [author] [stats]
  From: Sebastian M. Alvarez <sebastianmalvarez@gmail.com>
  To  : markus schnalke <meillo@marmaro.de>
  Date: Wed, 22 Feb 2012 13:46:58 -0300

Re: [masqmail] Debugging pipe calls

On Feb 22, 2012, at 1:27 PM, markus schnalke wrote:
> [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.

It is on :(

>> 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

The call is actually working. But it seems that the /home/ubuntu/Olapic/olapic/Hermes.php script is hanging somewhere. Actually I see some logs being executed from the script until a certain point, and ends there. It seems that PHP is returning some error that I can't find a way to see

> Does that work as expected?
Yes, it does

> P.S.
>> Córdoba, Argentina
> 
> Saludos a Argentina. :-) Cuanto calor tienen en Cordoba hoy? Y sabes
> lo de Santiago del Estero tambien?

Hey! Hablas español!?

Vinimos con unos dias de mucho calor, pero ahora esta lindo :)
En córdoba esta lindo, 26º C...
Santiago del estero 27

Sos de Santiago?

---
Sebastian M. Alvarez
Córdoba, Argentina
http://aseba.com.ar


Index: [thread] [date] [author] [stats]