busybox v0.1.5 Busybox View Source

BusyBox for Elixir programs

BusyBox is a C program that provides implementations of many Unix utilities in one small package. It is frequently used in embedded systems.

This Elixir module makes it available to Elixir programs on platforms that BusyBox supports.

Link to this section Summary

Functions

Execute a BusyBox command like System.cmd/3

Find the path to a BusyBox command

Return a list of installation paths for BusyBox binaries

Link to this section Functions

Link to this function

cmd(command, args, opts \\ [])

View Source

Specs

cmd(binary(), [binary()], keyword()) ::
  {Collectable.t(), exit_status :: non_neg_integer()}

Execute a BusyBox command like System.cmd/3

The BusyBox commands are in this application's priv directory and this version of cmd/3 only looks there for the binaries.

Link to this function

find_executable(program)

View Source

Specs

find_executable(binary()) :: Path.t() | nil

Find the path to a BusyBox command

Specs

path() :: [Path.t()]

Return a list of installation paths for BusyBox binaries