Class VcGuestProgramSpec

Extends VcDynamicData
This describes the arguments to VcGuestProcessManager.


Name Type Description
arguments String The arguments to the program. In Linux and Solaris guest operating systems, the program will be executed by a guest shell. This allows stdio redirection, but may also require that characters which must be escaped to the shell also be escaped on the command line provided. <p> For Windows guest operating systems, prefixing the command with "cmd /c" can provide stdio redirection.
envVariables String[] An array of environment variables, specified in the guest OS notation (eg PATH=c:\bin;c:\windows\system32 or LD_LIBRARY_PATH=/usr/lib:/lib), to be set for the program being run. Note that these are not additions to the default environment variables; they define the complete set available to the program. If none are specified the values are guest dependent.
programPath String The absolute path to the program to start. <p> For Linux guest operating systems, /bin/bash is used to start the program. <p> For Solaris guest operating systems, /bin/bash is used to start the program if it exists. Otherwise /bin/sh is used. If /bin/sh is used, then the process ID returned by <a href="VcGuestProcessManager.html#startProgram">VcGuestProcessManager</a> will be that of the shell used to start the program, rather than the program itself, due to the differences in how /bin/sh and /bin/bash work. This PID will still be usable for watching the process with <a href="VcGuestProcessManager.html#listProcesses">VcGuestProcessManager</a> to find its exit code and elapsed time.
workingDirectory String The absolute path of the working directory for the program to be run. VMware recommends explicitly setting the working directory for the program to be run. If this value is unset or is an empty string, the behavior depends on the guest operating system. For Linux guest operating systems, if this value is unset or is an empty string, the working directory will be the home directory of the user associated with the guest authentication. For other guest operating systems, if this value is unset, the behavior is unspecified.


Name Returns
VcGuestProgramSpec() constructor
equals(Object ) boolean
getDeserializer(String , java.lang.Class , javax.xml.namespace.QName ) org.apache.axis.encoding.Deserializer
getSerializer(String , java.lang.Class , javax.xml.namespace.QName ) org.apache.axis.encoding.Serializer
getTypeDesc() org.apache.axis.description.TypeDesc
hashCode() Number

Returned by


Referenced in

Method Returns
VcGuestProcessManager.startProgramInGuest(VcVirtualMachine vm, VcGuestAuthentication auth, VcGuestProgramSpec spec) Number