-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
执行路径名中存在空格如何处理,单引号转义无效 #2
Comments
建议尽量贴上 config.json 的配置文件
|
@hezhizheng 谢谢,已经这个思路可以解决。我采用的是另一个思路,直接改名 |
例如这样的路径 "node d:\'4 Node'\4\test.js"
.--------.---------------.------------------------------.----------.
| 任务ID | 表达式 | 执行命令 | 错误信息 |
+--------+---------------+------------------------------+----------+
| 1 | 0/5 * * * * ? | node d:'4 Node'\4\test.js | nil |
'--------'---------------'------------------------------'----------'
输入任意键退出
{"level":"info","msg":"执行命令: node d:\'4 Node'\4\test.js 输出: node:internal/modules/cjs/loader:930\r\n throw err;\r\n
实际识别成了d:\4的路径,对空格没有很好地处理
试过
"node d:\'4 Node'\4\test.js"
"node d:\4 Node\4\test.js"
"node d:\\"4 Node"\\4\\test.js"
路径转义始终失败
The text was updated successfully, but these errors were encountered: