1aclient(1)                  General Commands Manual                 aclient(1)
2
3
4

NAME

6       acl (done) A standard Client
7                           (Rev. 05-March-2010)
8

SYNTAX

10       aclient [-%] [-b blocksize] [-bsk socket_size] [-p prompt] host service
11       [-U name] [-Ppassword] [command...]
12

DESCRIPTION

14       aclient is a client application of the sk(3)  functions.  It  transmits
15       commands  to  aserver(1) running the specified service on the specified
16       host, and receives the result.
17

OPTIONS

19       -%   asks to encode the shell-specific characters < > & ? * [ ] (  )  ;
20       (see also the Escaping conventions below)
21
22       -b blocksize  defines the size of logical blocks read from the standard
23       input and transferred to the server. The default is 4k.
24
25       -bsk socket_size  defines the physical size of socket  blocks  used  in
26       data transmission. The default can be specified via the SK_bsk environ‐
27       ment variable; if SK_bsk is not defined, the  default  depends  on  the
28       socket standards, generally 4K.
29
30       -p  prompt   defines  the prompt to be displayed in case of interactive
31       mode. The default is
32       host/service.
33
34       host  designates the name of the host where the  specified  service  is
35       available.
36
37       service   designates  the  service,  either  as a name appearing in the
38       /etc/services(5) file, or as a number in the 1024-2047 range. The  same
39       service must be used by aserver.
40
41       -Uname   specifies  a  name  that  can be recognized by the Server (see
42       sk(3), authorisation file).
43
44       -Ppassword  specifies the password  associated  to  the  -U  name  (see
45       sk(3), authorisation file).
46
47       command   specifies what has to be executed by service at host; a semi-
48       colon (;) may be used as a separate argument to delimit commands.  When
49       no  command  is  given  as arguments, aclient waits for commands in the
50       standard input.
51
52 SENDING OR CAPTURING THE DATA
53       Data are normally transferred via the standard  input  and  output.   A
54       first  solution  therefore  consists in specifying the command for data
55       transfer as options, e.g.
56
57       aclient host service_file Write /tmp/copy < myinput
58
59       There are redirection possibilities but unlike sh(1) these redirections
60       must  be  specified before the command. The example above could be exe‐
61       cuted as:
62
63       aclient host service_file
64       host/service_file> <myinput Write /tmp/copy
65       host/service_file> ...
66
67       Note that file names may be replaced by pipes for names  starting  with
68       the | character; if blanks are embedded, the command have to be quoted.
69       For instance, to write the list of files to  a  foreign  file:  aclient
70       host service_file
71       host/service_file><"|ls -l" Write /tmp/copy
72       host/service_file> ...
73

ESCAPING CONVENTIONS

75       Since  aclient connects to aserver where a shell is executed, a special
76       convention (similar to http queries) is  available  to  escape  special
77       characters  and  define arguments with special characters to the server
78       program. This convention uses %{...} to define parameters with  special
79       characters (like blank, asterisks, etc).
80

ENVIRONMENT VARIABLES

82       SK_bsk is used by aclient as the default -bsk option.
83

EXAMPLES

85       1.  Query a catalog on cocat1:
86           aclient cocat1 1660 gsc1.2 -c 123.12-78.12 -r 1.5 -sr
87
88       2.  Copy a file to cocat1
89           aclient cocat1 1660 save < /etc/passwd
90           returns the name of the remote file
91
92       3.  List remote files having a name wich contains an asterisk:
93            aclient cocat1 1660 ls *%{*}*
94
95       4.  Find the star  ** STT 82AA' in the last version of edited simbad:
96            aclient -% newviz 1660 sim.arg 0 "** STT 82AA'"
97           which gives the same result as
98            aclient newviz 1660 sim.arg 0 "%** STT 82AA'"
99
100       5.  Rewind the tape /dev/nrst0 and get its status on the foreign
101            host using the rtape(4) service.
102           aclient  foreign  rtape setenv TAPE /dev/nrst0 \; mt stat \; mt rew
103           \; mt stat
104
105

SEE ALSO

107       aserver(1) pipe(2) sk(3) services(5)
108
109
110
111                                                                    aclient(1)
Impressum