Sorry, Juha... my fault... :(
Please try:
RET="$($CTLCMD "$CMD" | head -1)"
Edson
>-----Original Message-----
>From: Juha Heinanen [mailto:[EMAIL PROTECTED]
>Sent: sexta-feira, 24 de agosto de 2007 15:36
>To: Edson
>Cc: [EMAIL PROTECTED]; [email protected]
>Subject: RE: [OpenSER-Devel] openserctl ping
>
>Edson writes:
>
> > I think that this can help You:
> >
> > RET="$($CTLCMD $CMD | head -1)"
> >
>
>edson,
>
>i tried, but \n chars in $CMD are still converted to spaces:
>
>Aug 24 21:35:18 localhost /usr/sbin/openser[10726]:
>DEBUG:mi_fifo:mi_parse_tree: adding node <> ; val <From:
>sip:[EMAIL PROTECTED] To: <sip:[EMAIL PROTECTED]>^M Contact: sip:[EMAIL
>PROTECTED]>^M >
>
>-- juha
_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel