summaryrefslogtreecommitdiffstats
path: root/guestfish.pod
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-05-01 17:41:28 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-05-01 17:41:28 +0100
commita4d88af2c13692e38fb7cfce77b082cee6e0462f (patch)
treed0e96acd802af9a9c92476b39264334c954c9db1 /guestfish.pod
parent4ecdf8ec07d7eb4bfa4e1b5eef413e721a1f3711 (diff)
downloadlibguestfs-a4d88af2c13692e38fb7cfce77b082cee6e0462f.tar.gz
libguestfs-a4d88af2c13692e38fb7cfce77b082cee6e0462f.tar.xz
libguestfs-a4d88af2c13692e38fb7cfce77b082cee6e0462f.zip
Implement !local in guestfish.
Diffstat (limited to 'guestfish.pod')
-rw-r--r--guestfish.pod13
1 files changed, 13 insertions, 0 deletions
diff --git a/guestfish.pod b/guestfish.pod
index 746922f8..b464c717 100644
--- a/guestfish.pod
+++ b/guestfish.pod
@@ -189,6 +189,19 @@ but B<not> by a command. For example:
Blank lines are also ignored.
+=head1 RUNNING COMMANDS LOCALLY
+
+Any line which starts with a I<!> character is treated as a command
+sent to the local shell (C</bin/sh> or whatever L<system(3)> uses).
+For example:
+
+ !mkdir local
+ tgz-out /remote local/remote-data.tar.gz
+
+will create a directory C<local> on the host, and then export
+the contents of C</remote> on the mounted filesystem to
+C<local/remote-data.tar.gz>. (See C<tgz-out>).
+
=head1 COMMANDS
=head2 help