Running a PERL script from AX25D

From: pd (fsc.qsdaltulxe@tmg.md)
Date: Fri Nov 01 2002 - 23:28:00 EET

  • Next message: John Ackermann N8UR: "Logging program (non-contest) suggestions?"

    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.

    Here is the bash script:

    #!/bin/bash
    echo 'wait...'
    HOME=/home/bbs
    echo 'HOME set'
    cd /home/bbs
    pwd
    perl t.pl

    and here is the PERL script:

    #!/usr/bin/perl
    print "Hi\n";
    print "Enter a number\n";
    $buf = <STDIN>;
    $n = $buf * 2;
    print "Twice that is $n\n";
    print "bye!\n";

    Any suggestions?

    KB1EHD

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



    This archive was generated by hypermail 2b30 : Sat Nov 02 2002 - 04:26:06 EET