[Asterisk-Users] Re: AGI Stderr

Tony Mountifield tony at softins.clara.co.uk
Tue Jun 13 12:43:50 MST 2006


In article <01cf01c68e31$2a1e5350$0501a8c0 at snet01>,
Frederic Jean <fjean at sunnetgroup.net> wrote:
> 
> mmmm, never tried it with asterisk but you could redirect STDERR to STDOUT
> and see how you can capture this guy afterward...
> 
> open STDERR, ">&STDOUT";
> 
> just a thought....

I think you will find that's no good, because AGI uses stdout to talk to
Asterisk.

However, to reply to Doug, if you want to log the stderr with timestamps
via syslog you could do it by piping through "logger" (man logger):

open STDERR, "| /usr/bin/logger -p local0.notice -t AGI";

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list