[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: redirecting --monitor output...

From: Pawel Kot
Subject: Re: redirecting --monitor output...
Date: Tue, 06 May 2003 16:56:53 +0200


>>> address@hidden 6 May 2003 16:44:00 >>>
> hi, I am using --monitor and redirecting output to a perl script for

> handling:
> gnokii --monitor | perl
> Each line of output is sent to perl, as you would expect, until an 
> incoming call is detected. In this case, the 8th line goes to STDOUT,

> and does not reach perl. Here is is:
> CALL0: RINGING 07971966009() (duration: 18 sec)
> As you would also expect, this is the very line I want to get to

This is because this line is written to stderr and not stdout.
You may try either:
gnokii --monitor 2>&1 | perl
modify linke 2496 from gnokii.c

> Does anyone know how to make sure it all goes where it is needed, or

> have a different programatic method for handling incoming calls with

> --answercall and --hangup?

Well, you can use libgnokii for your application.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]