Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
* Running a PERL script from AX25D
@ 2002-11-01 21:28 pd
  2002-11-15  1:25 ` Craig Small
  0 siblings, 1 reply; 4+ messages in thread
From: pd @ 2002-11-01 21:28 UTC (permalink / raw)
  To: linux-hams

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-15  2:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-01 21:28 Running a PERL script from AX25D pd
2002-11-15  1:25 ` Craig Small
2002-11-15  2:02   ` Kelly Black
2002-11-14 22:48     ` pd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox