gnokii-users
[Top][All Lists]
Advanced

[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

Hi,

>>> 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 moniorData.pl
> 
> 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
perl!

This is because this line is written to stderr and not stdout.
You may try either:
gnokii --monitor 2>&1 | perl monitorData.pl
or
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.

pkot




reply via email to

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