condor:提交bash作业时引用不匹配

condor:提交bash作业时引用不匹配,bash,condor,Bash,Condor,我为一个作业编写了一个conder脚本,并使用condor\u 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将命令作

我为一个作业编写了一个conder脚本,并使用
condor\u 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抱怨不匹配的双引号。但双引号在我看来很好。我不知道是什么问题。这似乎是秃鹰的问题。有什么想法吗?

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


Condor是否使用双引号嵌入双引号?大多数shell使用反斜杠双引号。是。根据condor手册的页面,“指定参数有两种允许的格式。新语法支持参数中空格的统一引用;旧语法仅在特殊情况下支持参数中的空格。”我使用的是新语法。我甚至尝试了旧的语法,我得到了同样的错误。对于旧语法,我使用了
Arguments=-c\“command\u to\u run-d-f\”
Arguments=" -c 'command_to_run -d -f' "