2015-07-21 52 views
3

当我尝试使用GNU并行的信号,任何命令的结果:gnu平行缺少参数bash?

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

例如:

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

为什么没有什么获得通过打坏? (GNU/Linux 3.2.0-84-generic x86_64),GNU bash,版本4.2.25(1) - 发行版(x86_64-pc-linux-gnu),GNU并行20121122

+0

刚刚发现该选项--gnu平行似乎解决这个问题,但不知道为什么... – Kyle

+0

你被击中http://stackoverflow.com/questions/16448887/gnu-parallel-不工作在所有 –

+0

@ OleTange类似,但在我的情况下,命令根本没有得到执行。但解决方案是一样的。我会标记为重复的,但在这里让人们试图寻找症状将会很好。 – Kyle

回答

0

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

[email protected]> 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.