git clone git://
Log | Files | Refs | LICENSE

commit a7fbf8277d10a3e7c229f46f56cb0101687e614d
parent c701f98249c31804b073b72e6b2a93748fb35857
Author: Kris Maglione <>
Date:   Fri, 16 Feb 2007 02:34:21 -0500

Properly bracket the usage information in ixpc. Add xwrite to ixpc.1, and modify the examples appropriately.

ixpc.1 | 17+++++++++++------
ixpc.c | 2+-
2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/ixpc.1 b/ixpc.1 @@ -40,7 +40,7 @@ Prints version information to stdout, then exits. The syntax of the actions is as follows: .TP .B write -Writes the supplied data from stdin to +Writes the supplied data from the standard input to .IR file, overwriting any previous data. The data to be written is arbitrary and only gains meaning (and restrictions) when it is interpreted by @@ -49,6 +49,10 @@ See .B EXAMPLES below. .TP +.B xwrite +The same as write, but the data is taken from subsequent arguments, +rather than the standard input. +.TP .B create Creates file or directory. If the file exists, nothing is done. @@ -73,14 +77,15 @@ to the address of wmii. For more information about the contents of this filesystem, see .BR wmiiwm (1). .TP -.B echo -n quit | ixpc write /ctl +.B ixpc xwrite /ctl quit Write 'quit' to the main control file of the wmii filesystem, effectively leaving wmii. .TP -.B echo -n view 2 | ixpc write /ctl -Bring into view all clients tagged '2'. To learn about clients and -tags, see -.BR wmii (1). +.B ixpc write /keys \< keys.txt +Replace the contents of +.I /keys +with the contents of +.I keys.txt .SH SEE ALSO .BR wmii (1) diff --git a/ixpc.c b/ixpc.c @@ -290,7 +290,7 @@ main(int argc, char *argv[]) { xawrite(file, IXP_OWRITE); }else { Usage: - ixp_eprint("usage: ixpc [-a <address>] create | read | ls [-l] | remove | write <file>\n" + ixp_eprint("usage: ixpc [-a <address>] {create | read | ls [-l] | remove | write} <file>\n" " ixpc [-a <address>] xwrite <file> <data>\n" " ixpc -v\n"); }