Re: Running a PERL script from AX25D

From: Kelly Black (jwu.rcgty@kerailya.tunkki.fi)
Date: Fri Nov 15 2002 - 04:02:46 EET

  • Next message: pd: "Re: Running a PERL script from AX25D"

    On Thu, 2002-11-14 at 19:25, Craig Small wrote:
    > On Fri, Nov 01, 2002 at 09:28:00PM +0000, pd wrote:
    > > I am trying to run a PERL script as the "server" for some AX25 connections.
    > > My PERL script works fine when I invoke it from the command line.
    > >
    > > In ax25d.conf I specifiy a bash script to be run as the session command.
    > > Inside the bash script there is an 'echo' command, which I see when i connect.
    > > Other commands in that script also work. But then it runs the PERL script and
    > > everything just stalls.
    >
    > Sounds like a buffering problem to me. What's that command in perl
    > again? $| or something.
    >
    > - Craig

    I feel so stupid. Posting to Majordomo address, Ugh!

    Anyway here is what I meant to send to the list, and not to the
    subscription bot:

    Sounds right. I have it as:

    $| = 1;
    (or any non-zero value)
    This should unbuffer your script's output. Without this, your output to
    STDOUT is buffered and only sent when a certain block size is reached,
    or when the script exits with a less than full buffer.

    Kelly Black
    KB0GBJ

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



    This archive was generated by hypermail 2b30 : Fri Nov 15 2002 - 04:35:40 EET