Next Topic

Previous Topic

Book Contents

executeShellCommandToVariable()

Executes a shell command and returns output created during and after its execution to a variable. The variable must be referred to in subsequent steps as #global:cmdresults#.

Operating systems supported: Windows, Linux, OS X

Example

useCredential("All Operating Systems", "Halt on Fail")
executeShellCommandtToVariable("dir %APPDATA%", "User", true, "All Operating Systems", "Halt on Fail")
pauseProcedure(2, "All Operating Systems", "Halt on Fail")
writeProcedureLogEntry("#global:cmdresults#", "All Operating Systems", "Halt on Fail")