From e86c8c70adb3775f0ae37d081f3679cb95257c99 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 13 Aug 2018 16:47:20 +0100 Subject: fix on nc invocation and several fixes on regexp --- gosher.8 | 55 ++++++++++++++++++++----------------------------------- 1 file changed, 20 insertions(+), 35 deletions(-) (limited to 'gosher.8') diff --git a/gosher.8 b/gosher.8 index 45124e0..a3ae9af 100644 --- a/gosher.8 +++ b/gosher.8 @@ -4,61 +4,46 @@ .Os Linux .Sh NAME .Nm gosher -.Nd a Gopher server in a shell script +.Nd a Gopher server in a shell script .Sh SYNOPSIS .Nm gosher .Op Ar GOPHERDIR Op Ar HOSTNAME Op Ar PORT .Sh DESCRIPTION -.Pp -.Ic gosher +.Nm is a server for the Gopher protocol (RFC 1436) in a POSIX shell script. - .Pp Gopher is a textual protocol for information exchange over the Internet, -that provides a unified hierarchical menu-based interface. The Gopher -protocol has assigned port 70 by IANA. - +that provides a unified hierarchical menu-based interface. +The Gopher protocol has assigned port 70 by IANA. .Pp -.Ic gosher +.Nm uses -.Em netcat(1) -to listen for incoming connections on the specified +.Xr nc 1 +to listen for incoming connections on the specified .Ar HOSTNAME -(defaults to 'localhost' if not specified) and +(defaults to 'localhost' if not specified) and .Ar PORT -(defaults to 70 if +(defaults to 70 if .Ar PORT is not specified) and makes available all the files under the folder .Ar GOPHERDIR -(defaults to the current directory if not specified). - - - -.\" This next request is for sections 1, 6, 7 & 8 only -.\".Sh ENVIRONMENT - - -.\".Sh EXAMPLES -.\" This next request is for sections 1, 6, 7 & 8 only -.\" (command return values (to shell) and -.\" fprintf/stderr type diagnostics) - -.\" .Sh DIAGNOSTICS +(defaults to the current directory if not specified). .Sh SEE ALSO -lynx(1), gopher(1), sacc(1), clic(1) -.\" .Sh CONFORMING TO -.\" .Sh HISTORY +.Xr clic 1 , +.Xr gopher 1 , +.Xr lynx 1 , +.Xr sacc 1 , .Sh AUTHORS -.Ic gosher +.Nm is Free Software, distributed under the terms of the GNU General Public License (GPL), version 3 of the License. .Pp -.Ic gosher +.Nm is copyleft (c) 2018 by -.An Vincenzo (KatolaZ) Nicosia - +.An Vincenzo (KatolaZ) Nicosia Aq Mt katolaz@freaknet.org .Sh SECURITY CONSIDERATIONS It is recommended to run -.Ic gosher -under chroot(8). +.Nm +under +.Xr chroot 8 . -- cgit v1.2.3