aclient - Online Linux Manual PageSection : 1

NAMEacl (done) A standard Client
                    (Rev. 05-March-2010)

SYNTAXaclient [-%] [-b blocksize] [-bsk socket_size] [-p prompt] host service [-U name] [-Ppassword] [command...]

DESCRIPTIONaclient 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.

OPTIONS-% asks to encode the shell-specific characters < > & ? * [ ] ( ) ; (see also the Escaping conventions below) -b blocksize defines the size of logical blocks read from the standard input and transferred to the server. The default is 4k. -bsk socket_size defines the physical size of socket blocks used in data transmission. The default can be specified via the SK_bsk environment variable; if SK_bsk is not defined, the default depends on the socket standards, generally 4K. -p prompt defines the prompt to be displayed in case of interactive mode. The default is
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. -Uname specifies a name that can be recognized by the Server (see sk(3), authorisation file). -Ppassword specifies the password associated to the -U name (see sk(3), authorisation file). 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.

SENDING OR CAPTURING THE DATA 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
host/service_file> <myinput Write /tmp/copy
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
host/service_file><"|ls -l" Write /tmp/copy
host/service_file> ...

ESCAPING CONVENTIONSSince 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).

ENVIRONMENT VARIABLESSK_bsk is used by aclient as the default -bsk option.

EXAMPLES1.  Query a catalog on cocat1:
aclient cocat1 1660 gsc1.2 -c 123.12-78.12 -r 1.5 -sr
2.  Copy a file to cocat1
aclient cocat1 1660 save < /etc/passwd
returns the name of the remote file
3.  List remote files having a name wich contains an asterisk:
aclient cocat1 1660 ls *%{*}*
4.  Find the star ** STT 82AA' in the last version of edited simbad:
aclient -% newviz 1660 sim.arg 0 "** STT 82AA'"
which gives the same result as
aclient newviz 1660 sim.arg 0 "%** STT 82AA'"
5.  Rewind the tape /dev/nrst0 and get its status on the foreign host using the rtape(4) service.
aclient foreign rtape setenv TAPE /dev/nrst0 ; mt stat ; mt rew ; mt stat

SEE ALSOaserver(1) pipe(2) sk(3) services(5)
0
Johanes Gumabo
Data Size   :   20,716 byte
man-aclient.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 198,551
Visitor ID   :     :  
Visitor IP   :   3.145.170.164   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.