startShellJob abstract method

Future<Result<ShellJob, ExecutionError>> startShellJob(
  1. String command, {
  2. required String id,
  3. required String logPath,
  4. ShellExecOptions? options,
})

Starts command detached: stdout/stderr append to logPath and the returned ShellJob keeps running until it exits or is stopped. ShellExecOptions.timeout and ShellExecOptions.cancelToken still apply (both stop the job).

Implementation

Future<Result<ShellJob, ExecutionError>> startShellJob(
  String command, {
  required String id,
  required String logPath,
  ShellExecOptions? options,
});