https://github.com/buganini/brackets
help to write parallelized scripts
https://github.com/buganini/brackets
Last synced: 9 months ago
JSON representation
help to write parallelized scripts
- Host: GitHub
- URL: https://github.com/buganini/brackets
- Owner: buganini
- Created: 2010-09-27T01:37:31.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2012-07-05T13:51:54.000Z (almost 14 years ago)
- Last Synced: 2025-09-15T09:03:38.636Z (9 months ago)
- Language: C
- Homepage:
- Size: 765 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This program could has two names: [[ [[[
[[ ]] is sequential (not required)
[[[ ]]] is parallel
both of them are also used as command quote.
SEE Makefile
if [[ and/or [[[ is used by shell builtin command, use `brackets` as argv[0]
sh script equivalent for simple case:
#!/bin/sh
unset pids
cmds="1 2 3 4"
for cmd in $cmds; do
echo ${cmd} &
pids="$pids $!"
done
pwait $pids
(but what if process terminates and another process with same pid is executed before pwait?
though pid is not likely to collide.)