RunProcess
Frends Task for running cmd or bash commands in a local machine.
Last updated
Was this helpful?
Frends Task for running cmd or bash commands in a local machine.
Task version: 1.1.0
Required Frends version: 5.5+
Required .NET version: 6.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.Utilities/tree/main/Frends.Utilities.RunProcess
FileName : String
An application or document with which to start a process. Use cmd.exe to execute command on "command line".
Default: cmd.exe
Example: cmd.exe
Arguments : String[]
Command-line arguments to use when starting the application.
For Windows use /C start and on Unix use -c.
Default: -
Example: [ "/C", "echo Hello" ]
WorkingDirectory : String
Working directory for the process.
Default: -
Example: /working/directory OR C:\working\directory
TimeoutSeconds : Int32
Timeout in full seconds
Default: 30
Example: 30
KillProcessAfterTimeout : Boolean
Kill the process after timeout
Default: False
Example: true
RedirectStandardInput : Boolean
true if input should be read from StandardInput; otherwise, false
Default: True
Example: true
ThrowExceptionOnErrorResponse : Boolean
true if the task should throw exception when return code is not 0.
Default: False
Example: true
ExitCode : Int32
The status that the process returned when it exited.
Example: 0
Output : String
The process normal output (STDOUT)
Example: testvalue
StdErr : String
The process error output (STDERR)
Example: The system cannot find the file specified.
Changelog for Task Frends.Utilities.RunProcess.
You can now specify working directory for the process to run in (#12)
Fixed a bug where the process is executed twice (#11)
Initial implementation
Last updated
Was this helpful?
Was this helpful?

