Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
* how to gracefully exit aprsd server port connection?
@ 2009-04-01 18:23 Rick Bolen (GM)
  2009-04-01 20:39 ` Andre Lohan
  0 siblings, 1 reply; 2+ messages in thread
From: Rick Bolen (GM) @ 2009-04-01 18:23 UTC (permalink / raw)
  To: linux-hams

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


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

* Re: how to gracefully exit aprsd server port connection?
  2009-04-01 18:23 how to gracefully exit aprsd server port connection? Rick Bolen (GM)
@ 2009-04-01 20:39 ` Andre Lohan
  0 siblings, 0 replies; 2+ messages in thread
From: Andre Lohan @ 2009-04-01 20:39 UTC (permalink / raw)
  To: linux-hams

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

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

end of thread, other threads:[~2009-04-01 20:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01 18:23 how to gracefully exit aprsd server port connection? Rick Bolen (GM)
2009-04-01 20:39 ` Andre Lohan

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