Skip to content
pubscout

process_run

1.4.4+1, released 4 days ago by tekartik.com

Run shell scripts and locate executables across Linux, Windows and macOS.

Rock solid
$ flutter pub add process_run
Source repository

What it does

The package provides a Shell class that can execute scripts in a portable way and a whichSync function that searches for installed executables. It also offers process inspection utilities such as finding running processes by executable name and killing process trees.

AI-written summary of version 1.4.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to run shell commands from a Dart/Flutter app
  • You need to locate an executable on the host system
  • You need to inspect or terminate running processes

Skip it when

  • You only need simple command execution without process inspection
  • You are targeting only a single platform and prefer a native solution

Strengths

  • Cross‑platform command execution
  • Built‑in which‑like search for executables
  • Process inspection and killing utilities
  • No external dependencies beyond Dart SDK

Weaknesses

  • No async stream API for process output
  • Limited to Dart VM (not web)
  • Requires platform permissions for process control

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
8
import 'package:process_run/shell.dart';

var shell = Shell();
await shell.run('''
# Display some text
echo Hello
''');

Alternatives

Packages that do the same job and could replace process_run.

Works with

Packages commonly used together with process_run: ones it builds on, ones built on it, and its own family.