aclient man page
acl (done) A standard Client aclient [-%] [-b blocksize] [-bsk socket_size] [-p prompt] host service [-U name] [-Ppassword] [command...] aclient is a client application of the sk(3) functions. It transmits commands to aserver(1) running the specified service on the specified host, and receives the result. host/service. host designates the name of the host where the specified service is available. service designates the service, either as a name appearing in the /etc/services(5) file, or as a number in the 1024-2047 range. The same service must be used by aserver. command specifies what has to be executed by service at host; a semi-colon (;) may be used as a separate argument to delimit commands. When no command is given as arguments, aclient waits for commands in the standard input. Data are normally transferred via the standard input and output. A first solution therefore consists in specifying the command for data transfer as options, e.g. aclient host service_file Write /tmp/copy < myinput There are redirection possibilities but unlike sh(1) these redirections must be specified before the command. The example above could be executed as: aclient host service_file 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 of files to a foreign file: aclient host service_file Since aclient connects to aserver where a shell is executed, a special convention (similar to http queries) is available to escape special characters and define arguments with special characters to the server program. This convention uses %{...} to define parameters with special characters (like blank, asterisks, etc). SK_bsk is used by aclient as the default -bsk option. aserver(1) pipe(2) sk(3) services(5)
(Rev. 05-March-2010)Syntax
Description
Options
Sending or Capturing the Data
host/service_file> <myinput Write /tmp/copy
host/service_file> ...
host/service_file><"|ls -l" Write /tmp/copy
host/service_file> ... Escaping Conventions
Environment Variables
Examples
aclient cocat1 1660 gsc1.2 -c 123.12-78.12 -r 1.5 -sr
aclient cocat1 1660 save < /etc/passwd
returns the name of the remote file
aclient cocat1 1660 ls *%{*}*
aclient -% newviz 1660 sim.arg 0 "** STT 82AA'"
which gives the same result as
aclient newviz 1660 sim.arg 0 "%** STT 82AA'"
aclient foreign rtape setenv TAPE /dev/nrst0 \; mt stat \; mt rew \; mt statSee Also
Referenced By