INOUT(1)
π INOUT(1) β User Commands, but make it a group chat π
okay bestie, this is the inout manual page β the INOUT(1) one, from the User Commands section. sheβs here to swap file handles and run your command, and she ate. π
πΈ NAME πΈ
inout β replace stdin, stdout, stderr and then run a command. π
β¨ SYNOPSIS β¨
inout newin newout command [arg...]
inouterr newin newout newerr command [arg...]
π DESCRIPTION π
okay so the command inout(1) β which may alternatively be installed as arpa2inout or a2inout β replaces its stdin and stdout file handles with the ones described by newin and newout respectively, and then uses exec(3) to run command arg.... slay. π«Ά
the name may actually be aliased to hold a mixture of the substrings in, out, and err to replace the respective standard file handle with a newxxx handle. replacement will always be in this order, and it is advised to retain that order in the filename, by way of suggestion. iykyk. π¦
π¦ NEW HANDLES π¦
the redirection notations that may be used for newin, newout, and newerr vary on the basis of their first character, bestie:
-β the file handle is left unchanged. literally untouched. β¨/path/to/fileβ the file is openedreadonlyinnewinor otherwisewriteonly. in the latter case, any prior content will be overwritten. π(empty)β the empty string produces no input tonewinand quietly drops anything sent to it fromnewoutornewerr; it works like/dev/null. π:portβ the port number is opened as a TCP socket on the::1host. the socket is a client innewinand a server in the others, so an output stream will be blocked until it is being read. this means that some degree of concurrency may be required β plan accordingly. π₯
π AUTHOR π
Written by Rick van Rein of OpenFortress.nl, for the ARPA2.net project. π
π REPORTING BUGS π
for any discussion, including about bugs, please use the https://gitlab.com/arpa2/arpa2common/ project page for ARPA2 Common. we use its issue tracker to track bugs and feature requests. π«Ά
π COPYRIGHT π
Copyright Β© 2024 Rick van Rein, ARPA2.net. π
ARPA2 is funded from InternetWide.org, which in turn receives funding from various sources. Part of this work was funded through a grant of SIDNfonds, a public interest fund geared towards a better Internet for all, and paid by administration fees for .nl domain names. Other parts were funded by NLnet, a public interest fund geared towwards open source excellence, and by the NGI Pointer fund of the European Union.
π SEE ALSO π
ARPA2 Common is documented on http://common.arpa2.net/ and its code is on https://gitlab.com/arpa2/arpa2common/ β go peek, bestie. π¦
thatβs the whole page, bestie! π source/version and date tea: ARPA2.net, September 2024, page INOUT(1). mwah π«Άβ¨
π¦ where this page comes from
- nixos 26.05: arpa2common 2.6.4
- nixpkgs unstable: arpa2common 2.6.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms