![]() ![]() E.g./xampp-linux-圆4-1.8.n if you are already in the same directory where the file is. case '1' in start) echo 'Starting Node-Red. xampp-linux-圆4-1.8.n (assuming the directory is in your search path), Cant install xampp (Syntax error : Unterminated quoted string) 2) Open terminal. As mentioned in the comment the problem is the line after echo 'Starting Node-Red.' You need move the opening ' to before the cd and to add a closing ' to the end of that line.It is not a shell script and the normal way to execute it would either be: Winows NT, variable variables and double quotes in HEREDOC strings. Shot on the dark, but you may be hitting the bash maximum argument character length when piping SQL INSERT commands directly to psql (getconf MAXARGSTRLEN).Pipe to file using the COPY protocol commands (-Y flag), then try the import from that file. Using the file command on it confirms this:įile: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statically linked, stripped (edit), 01:55 UTC, 10:30 UTC, Installation problem, Bug, Closed. Prerequisites I have checked the Wiki and Discussions and found no answer I have searched other issues and found no duplicates I want to report a bug and not ask a question Operating system type Li. As mentioned by pmod one of the variables in filelist had a ' contained in a string, which messed up the shell comand. That seems to apply here because TSTRING indicates a problem with a string literal. Common errors are a missing semicolon at the line end and unterminated string literals (missing the terminating single or double quote character or using the wrong one). I just downloaded a file called xampp-linux-圆4-1.8.n from sourceforge (which I assume is the same file as you are using) and when I opened it in vim I noticed it starts with ^?ELF^. So inspect those or edit your question to show them. Notice the missing closing quote ( ") in the second echo line. (well duh!).Įither run it with the -x option to get more debug information, or open the installer in an editor and look for unmatched pairs of quotes. #nohup node -max-old-space-size=128 red.js > /var/log/node-red.The cause is probably an unterminated quoted string in the installer. As soon as you got rid of the parsing error, you have found the problem source. If you can't isolate the problem source, start to comment out (and thus temporarily remove) blocks of code. If you change this file, run 'update-grub' afterwards to update /boot/grub/grub.cfg. ![]() Su -l pi -c cd "node-red screen -dmS red node -max-old-space-size=64 red.jsĮcho `screen -ls red | sed -n '2p' | cut -f1 -d.` > $PIDFILE Partitioning up long code blocks really helps to locate the origin of syntax errors. ![]() # Short-Description: Node-RED initialisation I tried adding quote to "node-red, but it still doesn't work. I can't figure out which line is missing the quote. I'm using the following script, but keep getting the error "Syntax error: Unterminated quoted string". I'm trying to create an init.d file to start node-red on startup. ![]()
0 Comments
Leave a Reply. |