Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gophfilt(1) [debian man page]

GOPHFILT(1)						      General Commands Manual						       GOPHFILT(1)

NAME
gophfilt - oneshot connection to gopher document server SYNOPSIS
gophfilt [-t type] [-p path] [-h host] [-s port] [-i item] DESCRIPTION
The gophfilt program is a oneshot command line driven version of a gopher client, suitable for use in shell- or awk-scripts. The Internet Gopher is a distributed document delivery service. It allows a neophyte user to access various types of data residing on mul- tiple hosts in a seamless fashion. This is accomplished by presenting the user a hierarchical arrangement of documents and by using a client-server communications model. The Internet Gopher Server accepts simple queries, and responds by sending the client a document. Gophfilt can operate in either of two modes. The first one is in the spirit of unix filters, in that it accepts requests on stdin and writes results to stdout. The request is in the form of a tab-delimited .cache item. For example: 1Master Gopher at UMN 1/ gopher.tc.umn.edu 70 (Or in string notation) "1Master Gopher at UMN 1/ gopher.tc.umn.edu 70 " This example would result in the retrieval of the root directory from the Master Gopher. Gophfilt's other mode permits the construction of a gopher request from arguments provided on the command line. In this "manual" mode, at least the path and type items must be provided. The default host and port are taken from the file conf.h at module build time. -p specifies the path to the requested data. From our "filter" example above, the field "1/" is the path. -t specifies the type of the requested data. From our example above, the leading "1" character is the type (directory, in this case). -h specifies the name of the host where the server is to be found. The default host (CLIENT1_HOST from file conf.h) is used if not pro- vided. -s specifies the service (port) that the server is monitoring. The default port (CLIENT1_PORT from file conf.h) is used if not provided. -i specifies a search item. This field immediately follows the path field in the transmitted request. -T specifies a receiver timeout in seconds. This is the maximum time that gophfilt will wait for more data. If the "timeout" return value is noticed by the calling program, any data received to that point should be considered suspect. To recreate using manual operation the request from our example, one would execute the following command. gophfilt -t 1 -p 1/ -h gopher.tc.umn.edu -s 70 MORE EXAMPLES
Here is an example that demonstrates the usefulness of the gophfilt. This specific example only works on the Rutgers campus, but illus- trates the point gophfilt -t 0 -p "webster default SPELL" -i flatulence -h hangout.rutgers.edu -s 770 | gophfilt This example requests a selector item from the Webster's Dictionary, and then pipes that item to gophfilt for subsequent retrieval of the actual definition. The result is available on stdout for use. RETURNS
Gophfilt returns the following completion codes on exit: 0 Successful completion. -1 Error in parsing command line arguments. -2 Manual operation and insufficient parameters were provided. -3 Piped operation and unable to read selector from stdin. -4 Unsupported item type requested. -5 Unable to connect to specified host and port combination. -6 Error encountered writing to stdout. -7 Timeout occurred while waiting for more data. GOPHFILT(1)

Check Out this Related Man Page

GOPHER(1)						      General Commands Manual							 GOPHER(1)

NAME
gopher - connect to gopher document server SYNOPSIS
gopher [-sSbDr] [-t title] [-p path] [-T type] [-i search term] [hostnameorurl] [port] DESCRIPTION
The gopher client is used to talk to gopher servers. Once you have started the gopher client, help on using it is available by pressing the ? key. The Internet Gopher is a distributed document delivery service. It allows a neophyte user to access various types of data residing on mul- tiple hosts in a seamless fashion. This is accomplished by presenting the user a hierarchical arrangement of documents and by using a client-server communications model. The Internet Gopher Server accepts simple queries, and responds by sending the client a document. The [hostname] of a gopher server may be specified at startup; if omitted, the default server for your site is used. You may also specify a URL (Uniform Resource Locator) for this argument. The [Port_number] of the server host may be specified at startup; if omitted you will use the default port specified at your site. The more or less standard and accepted Gopher port number on the Internet is 70. OPTIONS
-b starts the client on the bookmark page. The next few options are for more advanced users who want to start at a location other than the default, or to set up special aliases or shell-scripts to point the gopher client to seperate places. -p path specify a specific selector string to send to the gopher server on startup. -T type let the client know what type of object the -p option is pointing at. -i search term tell the client what to search for in the object defined by the -p and -T 7 options. -t title set the title of the initial screen for the gopher client. The last few options aren't really of interest to regular users, but are provided for system administrators who waht to provide a secure client, or who need to debug a client. -s or -S "secure mode" which means that you can't save or print the files that you browse. -s is for users without an account, while -S assumes the user has an account on this machine. One security feature is forced on, regardless of the state of these options, if the name of the user's shell ends in rsh; the 'O' (options) command is disabled so the user cannot select a shell as an application. -r tells the client that its user is remote. -D turns on the copius debugging output In-Session Options Press return or the right arrow key on the mini keypad to view a document or enter a directory. Press Control/W, Control/R, or Control/L to repaint your menu at any time. At any time, you may press ? to see a help file of commands available. BOOKMARKS
Bookmarks allow users to create their own personallized menus from those available on the variety of Gopher servers available worldwide. The following list of keystrokes aids in developing and maintaining the bookmarks. a : Add current item to the bookmark list. A : Add current directory/search to bookmark list. v : View bookmark list. d : Delete a bookmark/directory entry. MOVING AROUND
Use the arrow keys to move around. Use the Arrow Keys to move around. Up, k ...............: Move to previous line. Down, j .............: Move to next line. Right, Return .......: "Enter"/Display current item. Left, u ............: "Exit" current item/Go up a level. >, +, Pgdwn, space ..: View next page. <, -, Pgup, b .......: View previous page. 0-9 .................: Go to a specific line. m .................: Go back to the main menu. OTHER COMMANDS
s : Save current item to a file. S : Save current list of items to a file. D : Download a file. q : Quit with prompt. Q : Quit unconditionally (also Control/Z). r : goto root menu of current item. R : goto root menu of current menu. = : Display Technical information about current item. ^ : Display technical information about current directory. o : Open a new gopher server w : Open a new gopher server or item by URL O : Change options. f : Connect to an anonymous FTP host / : Search for an item in the menu. g : "Gripe" via email to administrator of current item. n : Find next search item. $, ! : Spawn to subprocess (use "logout" to return to session) Ctrl-T : Show host's local date and time. GOPHER OBJECTS
Menu entries ending with "/" are directories; additional characteristics for files (such as binary, sound, image, and others) are identi- fied within angle brackets. Item tag Type Description -------------------------------------------- (none) 0 file / 1 directory <) s sound file <Picture> I,g image file <Movie> ; movie file <HQX> 4 BinHexed Macintosh file <Bin> 9 binary file <PC Bin> 5 DOS binary file <CSO> 2 CSO (ph/qi) phone-book server <TEL> 8 telnet connection <3270> T telnet connection (IBM 3270 emulation) <MIME> M Multi-purpose Internet Mail Extensions file <HTML> h HyperText Markup Language file <?> 7 index-search item <??> (none) ASK form EXAMPLES
gopher gopher.tc.umn.edu Connect to the gopher server running on the computer gopher.tc.umn.edu gopher -p "1/Information About Gopher" gopher.tc.umn.edu 70 Connect to the gopher server running on port 70 of the computer gopher.tc.umn.edu and start at the menu retrieved with the selector string 1/Information About Gopher gopher -p 7/indexes/Gopher-index/index -T 7 -i FAQ mudhoney.micro.umn.edu Connect to the gopher server running on the computer mudhoney.micro.umn.edu and start at the menu of items matching the string FAQ in the index specified by the selector string 7/indexes/Gopher-index/index CONFIGURATION FILE FORMAT
The client gets configuration data from the system gopher.rc file and the user's .gopherrc files. The options in these files may be set by using the O key in the client. See the manual page for gopherrc for more information about these options. ENVIRONMENT VARIABLES
The client also checks for environment variables for its configuration information. The following variables can be used: GOPHER_TELNET: The program used to connect to telnet services GOPHER_TN3270: The program used to connect to TN3270 services GOPHER_HTML: The program used to read HyperText Markup Language documents. GOPHER_PRINTER: The program used to print from a pipe. FILES
$HOME/.gopherrc user bookmarks and configuration information /usr/local/lib/gopher.rc system default configuration information (default location - may be somewhere else on your system) /usr/local/lib/gopher.hlp client help file displayed by the '?' command (default location - may be somewhere else on your system) COPYRIGHT
The Internet Gopher(tm) software and documentation is copyright (c) 1991, 1992, 1993, 1994 by the University of Minnesota. Gopher has lim- itations on its use and comes without a warranty. Please refer to the file 'Copyright' included in the distribution. GOPHER(1)
Man Page