gpt4 book ai didi

ruby - sh : 1: Syntax error: Unterminated quoted string, ruby ,Linux

转载 作者:太空宇宙 更新时间:2023-11-04 05:57:38 27 4
gpt4 key购买 nike

我需要在linux中的ruby中运行两个java编译器。我的代码是:

system("java  -Xmx2g -cp .:mul.jar:weka.jar:TrainTest1 -arff fileinput.arff -xml NILM.xml -K #{parameter1} -name c_#{parameter2}_ G_#{parametere3} -class \"-C #{parameter2} -L 0.0010 -P 1.0E-12 -N 0
-V 10 -W 1 -K \"weka.classifiers.functions.supportVector.RBFKernel -C 250007 -G #{parametere3} \"\\")

我正在运行WekaMulan图书馆。我有错误 sh: 1: Syntax error: Unterminated quoted string

最佳答案

您的命令行中有 3 个引号(不平衡),我想您需要 4 个(或其他偶数)。

关于ruby - sh : 1: Syntax error: Unterminated quoted string, ruby ,Linux,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16343504/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com