Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethanhann/parallel-commands
https://github.com/ethanhann/parallel-commands
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ethanhann/parallel-commands
- Owner: ethanhann
- License: bsd-2-clause
- Created: 2023-05-05T22:24:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-06T03:12:10.000Z (over 1 year ago)
- Last Synced: 2024-10-12T13:10:55.864Z (2 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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
```