From: Wilbert Knol (ewyaoa@pjb2.com)
Date: Fri Jan 03 2003 - 22:47:05 EET
> The standard end-of-line in AX.25 related world is CR
Thanks. In that case, in order to make it work with ax25d, Andrew
Bates's Perl script needs to start off like this:
#!/usr/bin/perl
# -- beginning of script
# Un-buffer STDIN:
$|=1;
# Use AX25 EOL:
# (Check the '$/' paragraph in 'man perlvar')
$/="\r";
I found that the AX25 socket gets closed as soon as the script runs
out. The remote end gets a UI disconnect, hot on the heels of the last
Info frame. The remote user never gets to see the result of the script.
A graceful closedown by the remote user would fix that:
print "Hit ENTER to quit:";
$call = (<>);
exit;
# end of script
So, it looks like it _really_ is as easy as advertised by G4KLX! I am
now scripting a search-my-log gizmo :-)
Wilbert, ZL2BSJ
-
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 Jan 03 2003 - 22:52:21 EET