ManPag.es - linux manpages

pdf

%++++++++ % Copyright: (C) 2008-2017 UDS/CNRS % License: GNU General Public License %.IDENTIFICATION aclient.tex %.PURPOSE Definition of macros related to Man Pages %.AUTHOR Francois Ochsenbein %.VERSION 1.0 26-Aug-1992 %---------- %============================================================= g i n { m a}{1}{aclient} {A standard Client} {05-March-2010} {client} n p a g a c l i e efgm{{{n t } } } a s e r v efserver{{{e tax { gm r } } } - - - b - s b k - } } - { { p \ \ } m m { - b s \ - l o m [{} [{o [{c [{p {\m host} {\m service} ] c k r k e o s t m i _ p z s t e i } } z ] ] e } ] - - - P - } U { } \ { m \ p [{m [{a [{\m command}$ } n s a s m w e o } r ] d } ]

nsec{Description} gm s k } is a client application of the {(unctions. It transmits {\m 3 ) commands} to server(1) running the specified {\m service} on the specified {\m host}, and receives the result. < > ? * [ ] ( ) ; } { \

nsec{Options} secific characters

{m

conventions} ( s e e a l s o t h e { below)} s

read from the standard input and transferred to 4 k the server.

The default is {} ehysical size of

socket .blocks used in data transmission.

The default can be specified via the {t SK_bsk} environment

variable; if {t SK_bsk} is not defined, the default

depends on the socket standards, generally 4K. - {\m prompt}} defines the prompt to be displayed in

case of interactive mode. The default is \

{t {\m host}/{\m service}}. e

specified {\m service} is available. apearing

in the {t /etc/services}(5) file, or as a number in the

1024--2047 range. The same {\m service} must be used by server. secifies a name that can be recognized s k } ( 3 ) , { \ m a

by the Server (see {uile}). massword}} specifies the t h o r i s a t i o n - - U } n a m e ( password associated to

the {s secifies what has to be e e { i l e } ) . ; } ) m executed by

{\m service} at {\m host}; a semi-colon ({a y b e

used as a separate argument to delimit commands.

When no {\m command} is given

as arguments, gm waits for commands in the {\m standard input}.

nsec{ Sending or Capturing the Data }

Data are normally transferred via the {\m standard} input and

output. A first solution therefore consists

in specifying the command for data transfer as {\m options}, e.g.

gm {t {\m host} {\m service_file} Write /tmp/copy < myinput} s h }

There are redirection possibilities but unlike {(

these 1 ) redirections must be specified {\m before} the command.

The g i n { example above could be executed as:

rdright}

gm a g g {t {\m host} {\m service_file} }\

{t{\m host}/{\m service_file}$>$} {t <myinput Write /tmp/copy}\

{t{\m host}/{\m service_file}$>$} ots

\nd{raggedright}

Note that file names may be replaced by pipes for names starting

with the $|$ character; if blanks are embedded, the command have

to be quoted. For instance, to write the list g i n { of files

to a foreign file:

rdright}

gm a g g {t {\m host} {\m service_file} }\

{t{\m host}/{\m service_file}$>$}{t <"|ls -l" Write /tmp/copy}\

{t{\m host}/{\m service_file}$>$} ots

\nd{raggedright} a c l i e n t } c

nsec{Escaping conventions}

Since {o

is executed, a n n e c t s t o { special convention (similar to http queries)

is available to {\m escape} special characters and

define arguments with special characters to the server

program. This convention . . . } uses {tine

parameters with special characters (like blank, o d e asterisks, etc).

nsec{Environment Variables}

{t SK_bsk} is used by gm - - b s k } as the default {o p t i o n . g i

nsec{Examples} nnumerate} item

Query a catalog on {\m cocat1}:\ { { r e d 4 } a { c r l e i d e 4 n } t a c c o l c i a e t n 1 t 1 c 6 o 6 c 0 a g t s 1 c 1

{t1 item

Copy a file to cocat1\

{t6

returns the . 6 2 0 - s c a 1 v 2 e 3 < . / 1 e 2 t - c 7 / 8 p . a 1 s 2 s - w r d 1 } . \ 5 - s r } name of the remote file item

List remote files having a name wich { r { e b d l 4 u } e a 3 c } l * i * e S n T t T c 8 contains an asterisk: \

{to item

Find the star {2 c A a A t ’ 1 } 1 i 6 n 6 t 0 h l e s l * a * s * t } { r e d 4 } a c l i e n t - n e w v i z 1 6 6

version of edited simbad: \

{t0

which gives the s i m . a r g 0 " * * S T T 8 2 A A ’ " } \ { r e d 4 } a c l i e n t n e w v i z 1 6 6 0 same result as \

{ts item

Rewind the tape {t/dev/nrst0} and i m . a r g 0 " { * * S T T 8 2 A A ’ } " } get its status on the

{t foreign} host using the {t g i rtape}(4) service. nrbatim} aclient foreign rtape setenv TAPE { v /dev/nrst0 ; mt stat ; mt rew ; mt stat \nd{verbatim} \nd{enumerate}

also{ aserver(1) pipe(2) sk(3) services(5) } \nd{manpage}

pdf