Proc Module
Module to start or run processes, used in combination with the CreateProcess
API.
Example
#r "paket:
nuget Fake.Core.Process //"
open Fake.Core
CreateProcess.fromRawCommand "./folder/mytool.exe" ["arg1"; "arg2"]
|> Proc.run
|> ignore
Functions and values
Function or value | Description |
|
|
Full Usage:
Proc.start c
Parameters:
CreateProcess<'a>
-
The create process instance
Returns: Task<'a>
|
Starts the given process and waits for the
|
Full Usage:
Proc.startAndAwait c
Parameters:
CreateProcess<'a>
-
The create process instance
Returns: Async<'a>
|
Convenience method when you immediately want to await the result of
|
Full Usage:
Proc.startRaw c
Parameters:
CreateProcess<'a>
-
The create process instance
Returns: Task<AsyncProcessResult<'a>>
|
Starts a process. The process has been started successfully after the returned task has been completed.
After the task has been completed you retrieve two other tasks:
Note: The Result task might finish while the Raw task is still running,
this enables you to work with the result object before the process has exited.
For example consider a long running process where you are only interested in the first couple of output lines
|
Full Usage:
Proc.startRawSync c
Parameters:
CreateProcess<'a>
-
The create process instance
Returns: AsyncProcessResult<'a>
|
|