Starts a system process.
- Namespace
- Statiq
.Core - Interfaces
-
- IModule
- IParallelModule
- IDisposable
- Base Types
graph BT
Type-->Base0["ParallelSyncMultiConfigModule"]
click Base0 "/api/Statiq.Common/ParallelSyncMultiConfigModule"
Base0-->Base1["ParallelMultiConfigModule"]
click Base1 "/api/Statiq.Common/ParallelMultiConfigModule"
Base1-->Base2["MultiConfigModuleBase"]
click Base2 "/api/Statiq.Common/MultiConfigModuleBase"
Base2-->Base3["Module"]
click Base3 "/api/Statiq.Common/Module"
Base3-->Base4["object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Statiq.Common/IModule"
Type-.->Interface1["IParallelModule"]
click Interface1 "/api/Statiq.Common/IParallelModule"
Type-.->Interface2["IDisposable"]
Type["StartProcess"]
class Type type-node
Syntax
public class StartProcess : ParallelSyncMultiConfigModule, IModule, IParallelModule, IDisposable
Remarks
This module can start both foreground and background processes. If the process
is a foreground process (the default), the module will wait for it to return
and output a document with the process standard output as it's content.
If the process is a background process, the module will fork it and let it run,
but no output document will be generated and it will log with a debug level.
Constructors
Name | Summary |
---|---|
StartProcess |
Starts a process for the specified file name and arguments. |
StartProcess |
Starts a process for the specified file name and arguments. |
Fields
Name | Field Type | Constant Value | Summary |
---|---|---|---|
ErrorData | string | ErrorData |
A metadata key that contains any error data from the process.
static
|
ExitCode | string | ExitCode |
A metadata key that contains the process exit code.
static
|
Properties
Name | Property Type | Summary |
---|---|---|
Configs | IReadOnlyDictionary |
Inherited from Multi
|
Force |
bool |
Inherited from Multi
|
Parallel | bool |
Indicates whether documents will be
processed by this module in parallel.
Inherited from Parallel
|