From: Andre Lohan <dc5ala@darc.de>
To: linux-hams@vger.kernel.org
Subject: Re: how to gracefully exit aprsd server port connection?
Date: Wed, 01 Apr 2009 22:39:15 +0200 [thread overview]
Message-ID: <49D3D0F3.6020000@darc.de> (raw)
In-Reply-To: <024001c9b2f7$00f80410$2401a8c0@fourwinds>
Rick Bolen (GM) schrieb:
> Hello,
>
> I have a perl script that connects to an APRSd server port (#14579 - TNC
> data only) and displays it to the console. The feed instructions state
> to hit "ctrl-D" to exit.
>
> This does not work for me. Nothing happens. If I hit "ctrl-C" from the
> console running my script, it kills the entire aprsd process!
>
> How do I gracefully close my socket connection without taking out the
> whole process?
>
> Thanks,
>
> Rick - KG4OFO
>
Hello Rick,
my guess is that your script needs to send the ctrl-d to exit. If you
start your script and hit ctrl-d it's your script that receive that key
and not the server you are connected to via the script. So your script
needs to send ctrl-d (EOF, ASCII code 0x1a) to disconnect from the aprs
server. Maybe you can modify the script to "forward" the EOF to the server.
73,
Andre - DC5ALA
prev parent reply other threads:[~2009-04-01 20:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-01 18:23 how to gracefully exit aprsd server port connection? Rick Bolen (GM)
2009-04-01 20:39 ` Andre Lohan [this message]
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=49D3D0F3.6020000@darc.de \
--to=dc5ala@darc.de \
--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