Re: Linux AX.25 Socket programming

From: Wilbert Knol (udq@roskapostia.tunk.net)
Date: Fri Jan 03 2003 - 08:32:03 EET

  • Next message: Tomi Manninen OH2BNS: "Re: Linux AX.25 Socket programming"

    On Thu, 2 Jan 2003, Tomi Manninen wrote:

    > the same in eg. Perl. There was a thread about Perl and ax25d recently on
    > this list but I have already forgotten what the correct procedure was...

    The trick was, to 'unbuffer' the Perl interpreter with:

    $|=1;
    # or any non-zero value

    My Perl Bible says:

     English name: $OUTPUT_AUTOFLUSH

     If set to any non-zero value, forces a flush after every write or
     print on the currently selected output device

    I tried out the recently posted Perl script (having 'unbuffered it
    first...)

    It looks as though AX25 scrambles the '\n', because the script keeps
    waiting for input (much
    like a Windows shutdown :-)

    When I set $/ to any character, the script then gets past the
    $call=(<>);
    statement once that character appears on stdin.

    How does ax25d present end-of-line?

    Wilbert, ZL2BSJ

    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to mgjuakjb@interbel.net
    More majordomo info at http://vger.kernel.org/majordomo-info.html



    This archive was generated by hypermail 2b30 : Fri Jan 03 2003 - 08:38:39 EET