/dev/null

(◞‸◟)

CentOSでGNU Parallelを入れたけどなんか動かねえなってとき。

yumからGNU parallelを入れた。

yum install -y parallel

で、サンプル的に試す。

[root@server ~]#  parallel echo ::: hello world !
parallel: Warning: YOU ARE USING --tollef. IF THINGS ARE ACTING WEIRD USE --gnu.
parallel: Warning: --tollef is obsolete and will be retired 20140222.
parallel: Warning: See: http://lists.gnu.org/archive/html/parallel/2013-02/msg00018.html

/bin/bash: :::: command not found
/bin/bash: hello: command not found
/bin/bash: world: command not found
/bin/bash: -c: line 0: syntax error near unexpected token `newline'
/bin/bash: -c: line 0: `!'

yumで入るparalellはtollefモードとやららしく、GNUのやつじゃない。

--gnuオプションいれると良い

[root@server ~]#  parallel --gnu echo ::: hello world !
hello
world
!

知るかよそんなもんって感じだ。

都度--gnu入れるの忘れるのでデフォルトを--gnuで動かすようにするには

/etc/parallel/config を開いて --tollef になってるところを --gnu にして終わり。

[root@server ]#  parallel echo ::: hello world !
hello
world
!