From 235fa050403c7335fb2287a280dc6ea8d2d7183b Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Mon, 24 Aug 2009 21:13:18 +0000 Subject: fix: on read through closed pipe, call did endless select(), read() = 0, wht consumed 100% CPU power. New options: -W: waits after EOF on stdin. Useful for scripting, for waiting for data coming via fd 3 (ax25 connection) -T secs: idle timout after secs seconds. --- call/call.1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'call/call.1') diff --git a/call/call.1 b/call/call.1 index a10465b..2786975 100644 --- a/call/call.1 +++ b/call/call.1 @@ -4,7 +4,7 @@ call \- make an AX.25, NET/ROM or Rose connection. .SH SYNOPSIS For AX.25 .br -.B call [-b l|e] [-d] [-h] [-m s|e] [-p paclen] [-s mycall] [-r] [-t] [-v] [-w window] port callsign [[via] digipeaters.....] +.B call [-b l|e] [-d] [-h] [-m s|e] [-p paclen] [-s mycall] [-r] [-t] [-T timeout] [-v] [-w window] [-W] port callsign [[via] digipeaters.....] .sp 1 For NET/ROM .br @@ -74,6 +74,9 @@ Connect using the specified source call (you may need to be root). .BI \-S Be silent. Useful for using call in shellscripts (together with option \-r) in order to be really transparent. .TP 10 +.BI "\-T timeout" +Set idle timeout seconds after a connection will be closed automaticaly when there's no data being transferred (in- and outbound). If timeout is set to 3600, the connection will close after 1h inactivity. A value of 0.5 is 500ms. +.TP 10 .BI \-r Selects Raw mode. .TP 10 @@ -85,6 +88,9 @@ Display the version. .TP 10 .BI "\-w window" Specify a specific AX.25 window for this connection. Only valid in AX.25 mode. +.TP 10 +.BI "\-W" +Wait for remote disconnect even if stdin is closed. Normaly, "echo q | call ax0 db0fhn" closes immediately after "echo q" terminates; thus we never see the greeting from db0fhn. With the -W option, call waits until the ax25-connection is disconnected (i.e. db0fhn disconnects after "q" command). Very useful for scripting. You might like to combine it with the -T option. .LP The call program interprets lines beginning with a '~' specially. The following '~' escapes are available. -- cgit v1.2.3