Yanor.net/
Wiki
Blog
GitHub
Sandbox
開始行:
* parallelコマンド [#o6a73c4a]
#!/bin/bash
SEQ="A
B
C
D
E"
echo "$SEQ" | parallel -j 10 \
'echo -n NO.{#}: ; n=$(echo $(($RANDOM % 10))); sleep ...
NO.4: do sommething of D .. done
NO.3: do sommething of C .. done
NO.1: do sommething of A .. done
NO.5: do sommething of E .. done
NO.2: do sommething of B .. done
** 参考 [#fd7ce5ca]
http://www.gnu.org/software/parallel/man.html
終了行:
* parallelコマンド [#o6a73c4a]
#!/bin/bash
SEQ="A
B
C
D
E"
echo "$SEQ" | parallel -j 10 \
'echo -n NO.{#}: ; n=$(echo $(($RANDOM % 10))); sleep ...
NO.4: do sommething of D .. done
NO.3: do sommething of C .. done
NO.1: do sommething of A .. done
NO.5: do sommething of E .. done
NO.2: do sommething of B .. done
** 参考 [#fd7ce5ca]
http://www.gnu.org/software/parallel/man.html
ページ名: