X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Fguestfish.pod;h=836c4f7f9ca63397ca209e3b5c9ade5f58500cae;hb=75d9c056b2db9ceedef9eca64e67ad3350eabad8;hp=e5f0bbaa4e2acddda2e745a19be89145aea78a56;hpb=c076aaea7e6d9459c8d8a96d21abd71a0223f098;p=libguestfs.git diff --git a/fish/guestfish.pod b/fish/guestfish.pod index e5f0bba..836c4f7 100644 --- a/fish/guestfish.pod +++ b/fish/guestfish.pod @@ -313,7 +313,9 @@ the Unix L program): chmod 0777 /public # OK chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal. -Commands that return numbers currently always print them in decimal. +Commands that return numbers usually print them in decimal, but +some commands print numbers in other radices (eg. C prints +the mode in octal, preceeded by C<0>). =head1 WILDCARDS AND GLOBBING @@ -484,6 +486,39 @@ user ID of the process, and C<$PID> is the process ID of the server. Guestfish client and server versions must match exactly. +=head1 UPLOADING AND DOWNLOADING FILES + +For commands such as C, C, C, C and +others which upload from or download to a local file, you can use the +special filename C<-> to mean "from stdin" or "to stdout". For example: + + upload - /foo + +reads stdin and creates from that a file C in the disk image, +and: + + tar-out /etc - | tar tf - + +writes the tarball to stdout and then pipes that into the external +"tar" command (see L). + +When using C<-> to read from stdin, the input is read up to the end of +stdin. You can also use a special "heredoc"-like syntax to read up to +some arbitrary end marker: + + upload -<. The end +marker must appear on a line of its own, without any preceeding or +following characters (not even spaces). + +Note that the C<-EE> syntax only applies to parameters used to +upload local files (so-called "FileIn" parameters in the generator). + =head1 GUESTFISH COMMANDS The commands in this section are guestfish convenience commands, in @@ -749,6 +784,7 @@ L, L, L, L, +L, L, L.