aclient(1)
π aclient β General Commands Manual π
β¨ NAME β¨
acl (done) β A standard Client, (Rev. 05-March-2010) π¦
π SYNTAX π
aclient [-%] [-b blocksize] [-bsk socket_size] [-p prompt] host service
[-U name] [-Ppassword] [command...]
πΈ DESCRIPTION πΈ
okay so aclient is a client app for the sk(3) functions π It sends your commands over to aserver(1), which is running the service you picked on the host you picked, and then it brings the result back to you β¨ literally that's the whole job, and it does it so well.
π OPTIONS π
-%β asks for the shell-specific characters< > & ? * [ ] ( ) ;to get encoded π (check out the Escaping conventions below for the deets)-b blocksizeβ sets how big the logical blocks are when they get read from standard input and shipped off to the server π¦ The default is4k.-bsk socket_sizeβ sets the physical size of the socket blocks used when data is transmitted π The default can be set with theSK_bskenvironment variable. IfSK_bskisn't defined, the default follows the socket standards, which is generally4Kπ-p promptβ picks the prompt that shows up in interactive mode π¬ The default ishost/service.hostβ the name of the host where your service lives πserviceβ the service, either as a name from the/etc/services(5)file or as a number in the1024-2047range π§ It has to be the same service thataserveris using, no mixing it up bestie π-Unameβ a name the Server will recognize πͺͺ (seesk(3), authorisation file)-Ppasswordβ the password that goes with your-U nameπ (seesk(3), authorisation file)commandβ whatserviceshould run onhostβ You can use a semi-colon (;) as its own argument to split up multiple commands. If you don't give any commands, aclient just waits for you to type them in through standard input β¨οΈ
π¦ SENDING OR CAPTURING THE DATA π¦
Data usually moves through standard input and output π So a first move is to put the data-transfer command in as options, like this:
aclient host service_file Write /tmp/copy < myinput
There are redirection options, but unlike sh(1), these redirections have to come before the command π The example above could also be run like this:
aclient host service_file
host/service_file> <myinput Write /tmp/copy
host/service_file> ...
Also, file names can be swapped out for pipes if the name starts with the | character β¨ If there are blanks in it, the command has to be quoted, so be extra careful π«Ά For instance, if you want 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 CONVENTIONS π
Since aclient connects to aserver, where a shell gets run, there's a special convention (kinda like http queries) for escaping special characters and defining arguments with special characters for the server program π It uses %{...} to define parameters that have special characters in them, like blanks, asterisks, and so on.
π§ ENVIRONMENT VARIABLES π§
SK_bsk is what aclient uses as the default -bsk option π
π₯ EXAMPLES π₯
1. 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 that have a name containing 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 ALSO π
aserver(1) pipe(2) sk(3) services(5) π«Ά
That's the whole tea, bestie π Go forth and aclient(1) like the main character you are π π¦
π¦ where this page comes from
- fedora 43: cdsclient 4.07-5.fc43 Β· GPL-3.0-only
- fedora 44: cdsclient 4.07-7.fc44 Β· GPL-3.0-only
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms