0

我为一个工作写了一个 conder 脚本并condor_submit用来提交这个工作。下面是我的脚本:

Executable=/bin/bash
Arguments=" -c "" command_to_run -d -f"" "

initialdir= /path/
output=/path/out
error=/path/err
log=/path/log
universe = vanilla 
Getenv = true
Queue

如上所示,可执行文件是bash,我-c用来将命令作为字符串传递给 bash。err作业提交正常,但我在输出文件中收到以下错误消息:

command_to_run: -c: line 0: unexpected EOF while looking for matching `"'
command_to_run: -c: line 1: syntax error: unexpected end of file

这只是 bash 抱怨不匹配的双引号。但是双引号对我来说看起来不错。我不知道问题是什么。这似乎是一个秃鹰问题。有任何想法吗?

4

1 回答 1

1

如果您只是传递-c给 bash ,那么单引号就足够了(除非您尝试嵌入变量):

Arguments=" -c 'command_to_run -d -f' "
于 2013-03-03T18:20:26.063 回答