The run_cmd method is intended to execute commands on the command prompt from a script.
The run_cmd_timeout method is intended to execute commands on the command prompt with a timeout.
When invoking commands, the command prompt window does not open, i.e. the commands are executed in silent mode.
The syntax for calling methods is as follows:
function run_cmd (cmd: String) function run_cmd_timeout (cmd: String, timeout: int) |
Method arguments:
Example. Run the curl utility and send a POST request with the text "Hello" to the test URL https://postman-echo.com/post
var s = run_cmd("curl --request POST --url https://postman-echo.com/post --data \'Hello\'"); DebugLogString(s); |