InstallAnywhere 2018
The ExecuteAsRoot custom code plug-in action enables you to run a command on a UNIX system as root.
Classname
com.zerog.ia.customcode.unix.ExecuteAsRoot
Instructions
The ExecuteAsRoot plug-in action requires that Expect, a public domain software tool for automating interactive applications, already be installed on the target machine, and also requires that your su command support the -c switch. You can download Expect from http://expect.nist.gov.
InstallAnywhere Input Variables
The following input variables are used with the ExecuteAsRoot plugin action:
Variable |
Description |
$EXECUTE_AS_ROOT_COMMAND$ |
The command to run with root privileges. |
$EXECUTE_AS_ROOT_PASSWORD$ |
The root password. |
$EXECUTE_AS_ROOT_EXPECT_PATH$ |
(Optional) The location of the expect binary on the system. The default value is /usr/bin/expect. |
$EXECUTE_AS_ROOT_WAIT_TIME$ |
(Optional) The time out for the command that is running. The default value is 5 seconds. |
$EXECUTE_AS_ROOT_TMP_PATH$ |
(Optional) The location to store the temporary expect script. The default value is /tmp. |
InstallAnywhere Output Variables
The following output variables are used with the ExecuteAsRoot plugin action:
Variable |
Description |
$EXECUTE_AS_ROOT_EXIT_CODE$ |
The exit code, where 0 indicates success and 100 indicates incorrect password. |
$EXECUTE_AS_ROOT_ERROR_MESSAGE$ |
InstallAnywhere 2018 Help LibraryMarch 2018 |
Copyright Information | Flexera |