2009-10-13 06:07:51 +04:00
|
|
|
.TH "wmiir" 1 "Oct, 2009" "wmii-@VERSION@"
|
|
|
|
|
|
|
|
.SH NAME
|
|
|
|
.P
|
|
|
|
wmiir \- The wmii 9P filesystem client
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.P
|
2023-09-30 23:56:22 +03:00
|
|
|
wmiir [\fI\-a \fI<address>\fR\fR] [\fI\-b\fR] {create | ls [\fI\-dlp\fR] | read | remove | write} \fI<file>\fR
|
2009-10-13 06:07:51 +04:00
|
|
|
.P
|
2023-09-30 23:56:22 +03:00
|
|
|
wmiir [\fI\-a \fI<address>\fR\fR] [\fI\-b\fR] xwrite \fI<file>\fR \fI<data>\fR ...
|
2009-10-13 06:07:51 +04:00
|
|
|
.P
|
|
|
|
wmiir \-v
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.P
|
|
|
|
\fBwmiir\fR is a simple 9P filesystem client which ships with \fBwmii\fR, and connects
|
|
|
|
to its virtual filesystem by default. \fBwmiir\fR is most often used to query and
|
|
|
|
issue commands to \fBwmii\fR, both from the command line and from its \fBsh\fR\-based
|
|
|
|
configuration scripts.
|
2010-06-09 07:59:01 +04:00
|
|
|
.P
|
|
|
|
Since the default encoding of 9P filesystems is UTF\-8, \fBwmiir\fR
|
|
|
|
assumes that all data read and written is text data and
|
|
|
|
translates to or from your locale character encoding as
|
|
|
|
necessary. When working with non\-text data in a non\-UTF\-8
|
|
|
|
locale, the \fI\-b\fR flag should be specified to disable this
|
|
|
|
behavior.
|
2009-10-13 06:07:51 +04:00
|
|
|
.SH ARGUMENTS
|
2023-09-30 23:56:22 +03:00
|
|
|
|
2009-10-13 06:07:51 +04:00
|
|
|
.TP
|
|
|
|
\-a
|
|
|
|
The address at which to connect to \fBwmii\fR.
|
2010-06-09 07:59:01 +04:00
|
|
|
.TP
|
|
|
|
\-b
|
|
|
|
|
|
|
|
.RS
|
|
|
|
With the \fI\-b\fR flag, data that you intend to read or
|
|
|
|
write is treated as binary data.
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
:
|
2009-10-13 06:07:51 +04:00
|
|
|
.SH COMMANDS
|
2010-05-30 23:18:15 +04:00
|
|
|
.P
|
|
|
|
The following commands deal with 9P filesystems.
|
|
|
|
|
2009-10-13 06:07:51 +04:00
|
|
|
.TP
|
|
|
|
create \fI<file>\fR
|
|
|
|
Creates a new file or directory in the filesystem. Permissions and
|
|
|
|
file type are inferred by \fBwmii\fR. The contents of the standard input
|
|
|
|
are written to the new file.
|
|
|
|
.TP
|
2023-09-30 23:56:22 +03:00
|
|
|
ls [\fI\-dlp\fR] \fI<path>\fR
|
2009-10-13 06:07:51 +04:00
|
|
|
Lists the contents of \fI<path>\fR.
|
|
|
|
|
|
|
|
Flags:
|
|
|
|
.RS 8
|
|
|
|
.TP
|
|
|
|
\-d
|
|
|
|
Don't list the contents of directories.
|
|
|
|
.TP
|
|
|
|
\-l
|
|
|
|
Long output. For each file, list its permissions, owner,
|
|
|
|
group, size (bytes), mtime, and name.
|
|
|
|
.TP
|
|
|
|
\-p
|
|
|
|
Print the full path to each file.
|
|
|
|
.RS -8
|
|
|
|
.TP
|
|
|
|
read \fI<file>\fR
|
|
|
|
Reads the entire contents of a file from the filesystem. Blocks until
|
|
|
|
interrupted or EOF is received.
|
|
|
|
|
|
|
|
Synonyms: \fBcat\fR
|
|
|
|
.TP
|
|
|
|
remove \fI<path>\fR
|
|
|
|
Removes \fI<path>\fR from the filesystem.
|
|
|
|
|
2010-05-30 23:18:15 +04:00
|
|
|
Synonyms: \fBrm\fR
|
2009-10-13 06:07:51 +04:00
|
|
|
.TP
|
|
|
|
write \fI<file>\fR
|
|
|
|
Writes the contents of the standard input to \fI<file>\fR.
|
|
|
|
.TP
|
|
|
|
xwrite \fI<file>\fR \fI<data>\fR ...
|
|
|
|
Writes each argument after \fI<file>\fR to the latter.
|
|
|
|
|
2010-05-30 23:18:15 +04:00
|
|
|
.P
|
|
|
|
Additionally, wmiir provides the following utility commands relevant
|
|
|
|
to scripting wmii:
|
|
|
|
|
|
|
|
.TP
|
|
|
|
namespace
|
|
|
|
|
|
|
|
.RS
|
|
|
|
Prints the current wmii namespace directory, usually
|
|
|
|
equivalent to /tmp/ns.\fB$USER\fR.\fB${DISPLAY\fR%.0\fB}\fR, but possibly
|
|
|
|
different depending on the value of \fB$NAMESPACE\fR and
|
|
|
|
\fB$WMII_NAMESPACE\fR.
|
|
|
|
.RE
|
|
|
|
.RS
|
|
|
|
Synonyms: \fBns\fR
|
|
|
|
.RE
|
2023-09-30 23:56:22 +03:00
|
|
|
|
2010-05-30 23:18:15 +04:00
|
|
|
.TP
|
2023-09-30 23:56:22 +03:00
|
|
|
setsid [\fI\-0 \fI<argv0>\fR\fR] [\fI\-f\fR] \fI<command>\fR
|
2010-05-30 23:18:15 +04:00
|
|
|
|
|
|
|
.RS
|
|
|
|
Executes the given command after setting the session id (see
|
|
|
|
setsid(2)). If \fI\-0\fR is given, the command is run with the
|
2023-09-30 23:56:22 +03:00
|
|
|
given value as argv[\fI0\fR]. For instance, to run sh as a login
|
2010-05-30 23:18:15 +04:00
|
|
|
shell, one might run
|
|
|
|
.RE
|
|
|
|
|
|
|
|
.nf
|
2023-09-30 23:56:22 +03:00
|
|
|
wmiir setsid -0 -sh sh
|
2010-05-30 23:18:15 +04:00
|
|
|
.fi
|
|
|
|
|
2023-09-30 23:56:22 +03:00
|
|
|
|
2010-05-30 23:18:15 +04:00
|
|
|
.RS
|
|
|
|
If \fI\-f\fR is given, wmiir will fork into the background before
|
|
|
|
executing the command.
|
|
|
|
.RE
|
2023-09-30 23:56:22 +03:00
|
|
|
|
2010-05-30 23:18:15 +04:00
|
|
|
.TP
|
2023-09-30 23:56:22 +03:00
|
|
|
proglist [\fI\-\-\fR] \fI<directory>\fR ...
|
2010-05-30 23:18:15 +04:00
|
|
|
|
|
|
|
.RS
|
|
|
|
Lists all executable commands in the given directories.
|
|
|
|
.RE
|
2009-10-13 06:07:51 +04:00
|
|
|
.SH ENVIRONMENT
|
2023-09-30 23:56:22 +03:00
|
|
|
|
2009-10-13 06:07:51 +04:00
|
|
|
.TP
|
|
|
|
\fB$WMII_ADDRESS\fR
|
|
|
|
The address at which to connect to wmii.
|
|
|
|
.TP
|
|
|
|
\fB$NAMESPACE\fR
|
|
|
|
The namespace directory to use if no address is
|
|
|
|
provided.
|
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
.P
|
2023-09-30 23:56:22 +03:00
|
|
|
wmii(1), libixp[\fI2\fR]
|
2009-10-13 06:07:51 +04:00
|
|
|
.P
|
2023-09-30 23:56:22 +03:00
|
|
|
[\fI1\fR] http://www.suckless.org/wiki/wmii/tips/9p_tips
|
2009-10-13 06:07:51 +04:00
|
|
|
.P
|
2023-09-30 23:56:22 +03:00
|
|
|
[\fI2\fR] http://libs.suckless.org/libixp
|
2009-10-13 06:07:51 +04:00
|
|
|
|
2023-09-30 23:56:22 +03:00
|
|
|
.\" man code generated by txt2tags 3.3 (http://txt2tags.org)
|
2009-10-13 06:07:51 +04:00
|
|
|
.\" cmdline: txt2tags -o- wmiir.man1
|