exec function


exec integer

exec (String command_with_parameters)

Executes the command and parameters using the current systems command shell.

Parameters:

command_with_parameters - a string containing the command and the parameters.

Returns:

The exit status of the command.

Warning

Example

command = "ls -l"
status = exec(command)
if status == 0 then
// Command executed OK
else
// Executing command returned an error
endif



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Console Management for zEnterprise, BMC AMI Console Automation for zEnterprise, and BMC AMI SecureHMC 4.0