X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfish-actions.pod;h=fbf2f97c678b261522e5a180bbb978c5ec852edd;hp=606c5b93581ec87fc9a6376c3062841721322cae;hb=5a563bbd9b2779640e3358f4bf1eaac622b58cae;hpb=adefe14e308a0f8cf73f9c60693a3dbbded157b9 diff --git a/guestfish-actions.pod b/guestfish-actions.pod index 606c5b9..fbf2f97 100644 --- a/guestfish-actions.pod +++ b/guestfish-actions.pod @@ -214,6 +214,38 @@ Only numeric uid and gid are supported. If you want to use names, you will need to locate and parse the password file yourself (Augeas support makes this relatively easy). +=head2 command + + command arguments,... + +This call runs a command from the guest filesystem. The +filesystem must be mounted, and must contain a compatible +operating system (ie. something Linux, with the same +or compatible processor architecture). + +The single parameter is an argv-style list of arguments. +The first element is the name of the program to run. +Subsequent elements are parameters. The list must be +non-empty (ie. must contain a program name). + +The C<$PATH> environment variable will contain at least +C and C. If you require a program from +another location, you should provide the full path in the +first parameter. + +Shared libraries and data files required by the program +must be available on filesystems which are mounted in the +correct places. It is the caller's responsibility to ensure +all filesystems that are needed are mounted at the right +locations. + +=head2 command-lines + + command-lines arguments,... + +This is the same as C, but splits the +result into a list of lines. + =head2 config config qemuparam qemuvalue