Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ethanhann/parallel-commands


https://github.com/ethanhann/parallel-commands

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# parallel-commands

Simple Golang program to run multiple shell commands in parallel.

## Installation

Install:

```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/ethanhann/parallel-commands/HEAD/install.sh)"
```

Uninstall:

```bash
rm /usr/local/bin/pc
```

## Configuration

The default config file name is `commands.json`.

Config file format:

```json
{
"commands": [
"COMMAND_NAME"
]
}
```

Example:

```json
{
"commands": [
"ls -l",
"ls -lhp"
]
}
```

## Usage

Simply
```shell
./pc
```

Or, with a custom config file:

```shell
./pc
```