# Module cloudi_os_process

- Description
- Data Types
- Function Index
- Function Details

### CloudI OS Process Functionality

.

Copyright © 2020-2021 Michael Truog

Version: 2.0.2 Dec 3 2021 17:15:34 ------------------------------------------------------------------------

Authors: Michael Truog (`mjtruog at protonmail dot com`).

## Description

### CloudI OS Process Functionality

## Data Types

### signal()

`signal() = sighup | sigint | sigquit | sigill | sigtrap | sigabrt | sigbus | sigfpe | sigkill | sigusr1 | sigsegv | sigusr2 | sigpipe | sigalrm | sigterm | sigstkflt | sigchld | sigcont | sigstop | sigtstp | sigttin | sigttou | sigurg | sigxcpu | sigxfsz | sigvtalrm | sigprof | sigwinch | sigio | sigpwr | sigsys | pos_integer()`

### signal_string()

`signal_string() = [65..90 | 48..57 | 35, ...]`

## Function Index

kill/2 | #### Kill OS processes. .
kill_group/2 | #### Kill OS process groups. .
shell/1 | #### Execute a shell command. .
shell/2 | #### Execute a shell command with a string format. .
signal_to_integer/1 | #### Convert a signal to an integer. .
signal_to_string/1 | #### Convert a signal integer to a string. Only signal integers that are consistent among all platforms use a specific string.

## Function Details

### kill/2

`kill(Signal::signal(), OSPids::pos_integer() | [pos_integer()]) -> ok | {error, any()}`

#### Kill OS processes.

### kill_group/2

`kill_group(Signal::signal(), OSPids::pos_integer() | [pos_integer()]) -> ok | {error, any()}`

#### Kill OS process groups.

### shell/1

`shell(Exec::iodata()) -> {non_neg_integer(), [binary()]}`

#### Execute a shell command.

### shell/2

`shell(Command::string(), Arguments::list()) -> {non_neg_integer(), [binary()]}`

#### Execute a shell command with a string format.

### signal_to_integer/1

`signal_to_integer(Signal::signal()) -> pos_integer()`

#### Convert a signal to an integer.

### signal_to_string/1

`signal_to_string(Signal::pos_integer()) -> signal_string()`

#### Convert a signal integer to a string.

Only signal integers that are consistent among all platforms use a specific string.

Generated by EDoc