From: Andrew Bates <abates@omeganetserv.com>
To: Kelly Black <kelly.black@penguinpackets.com>
Cc: Linux Hams mailing list <linux-hams@vger.kernel.org>
Subject: Re: Linux AX.25 Socket programming
Date: Wed, 01 Jan 2003 16:00:43 -0700 [thread overview]
Message-ID: <3E13731B.C965C3A7@omeganetserv.com> (raw)
In-Reply-To: 1041461308.10491.17.camel@edith
> Excellent!!! Does anybody know where I can find an example of a script
> that is doing just this read from stdin and write to stdout.
>
Here is a very simply perl script that reads and writes to the stdin/stdout:
#!/usr/bin/perl
# -- beginning of script
# display our message to the stdout
print "Testing ax25d\n";
print "Please enter your callsign: ";
# read input from the command line, until
# a carriage return is received
$call = (<>);
# remove the trailing carriage return
chomp $call;
# display callsign to the stdout
print "Hello ".$call."!\n";
exit;
# -- end of script
hope that helps, more information about perl can be found at www.perl.com...
other scripting languages (like korn shell) have howto's at the linux
documentation project (www.tldp.org). Any language that can communicate with
*nix's STDIN/STDOUT (C/C++, Java, ksh, sh, bash, perl, etc.) can be used for
AX25d processes.
Andrew
next prev parent reply other threads:[~2003-01-01 23:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-01 18:59 Linux AX.25 Socket programming Jonathan Naylor
2003-01-01 22:48 ` Kelly Black
2003-01-01 23:00 ` Andrew Bates [this message]
2003-01-02 2:12 ` Kelly Black
2003-01-03 0:44 ` Curt Mills, WE7U
2003-01-02 4:37 ` Tomi Manninen
2003-01-02 5:13 ` Kelly Black
2003-01-03 6:32 ` Wilbert Knol
2003-01-03 17:17 ` Tomi Manninen OH2BNS
2003-01-03 20:47 ` Wilbert Knol
2003-01-03 20:58 ` Kelly Black
2003-01-03 21:02 ` M Taylor
2003-01-03 22:26 ` Wilbert Knol
2003-01-06 9:28 ` Wilbert Knol
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E13731B.C965C3A7@omeganetserv.com \
--to=abates@omeganetserv.com \
--cc=kelly.black@penguinpackets.com \
--cc=linux-hams@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox