Skip to content

Manage asynchronous / parallels command in your shell - Built in PHP / phar

License

Notifications You must be signed in to change notification settings

donkeycode/parallel

Repository files navigation

Run php commands in parallel

Build Status

Installation

URL=$(curl --silent "https://api.github.com/repos/donkeycode/parallel/releases/latest"  | grep browser_download_url | sed -E 's/.*"([^"]+)".*/\1/')
wget $URL
chmod +x parallel.phar

Optionaly can be moved to /usr/local/bin

mv parallel.phar /usr/local/bin/parallel

Like that you can use everywhere cat commands.txt | parallel

Basic usage

cat commands.txt | php parallel.phar

Limit threads (default 10)

cat commands.txt | php parallel.phar --threads=20
cat commands.txt | php parallel.phar -t20

Inline commands

php parallel.phar "command1" "command2" "command3"

About

Manage asynchronous / parallels command in your shell - Built in PHP / phar

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages