gnu并行缺少bash的论点?

时间:2015-07-21 23:31:51

标签: bash semaphore gnu-parallel

当我尝试使用gnu parallel的信号量时,任何命令都会导致:

/bin/bash: -c: option requires an argument

例如:

parallel --semaphore --verbose sleep 1000
/bin/bash -c 
/bin/bash: -c: option requires an argument

为什么没有任何东西传递给bash?

我在Ubuntu 12.04.5 LTS(GNU / Linux 3.2.0-84-generic x86_64),GNU bash,版本4.2.25(1)-release(x86_64-pc-linux-gnu),GNU parallel 20121122。

1 个答案:

答案 0 :(得分:0)

当我在我的问题中添加我使用的版本时,我在版本声明中遇到了这个问题。如果在运行并行时打印(没有--quiet标志或其他东西),可能会很好!

koman@erasmus> parallel --version
WARNING: YOU ARE USING --tollef. IF THINGS ARE ACTING WEIRD USE --gnu.
GNU parallel 20121122
Copyright (C) 2007,2008,2009,2010,2011,2012 Ole Tange and Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
GNU parallel comes with no warranty.

Web site: http://www.gnu.org/software/parallel

When using GNU Parallel for a publication please cite:

O. Tange (2011): GNU Parallel - The Command-Line Power Tool, 
;login: The USENIX Magazine, February 2011:42-47.