Hey guys, I'm having an issue with quotes inside of quotes, hoping someone can help me. Here's my code:
"screen -S gmod1 -p 0 -X stuff " & "" & command.text & "" & "`echo -ne '\015'`"""
Basically this sends text to a Linux screen session and hits ENTER(I've also posted on UNIX forums due to it being partially a UNIX/SHELL Issue but I think the syntax issue relates to B4A). If command.text is only one word, it works perfectly fine. If I want command.text to be two words I must manually add quotations around them within the app. I would like to add the quotation programmatically. I'm also racking my brain on changing the variable before this line of code. Something to the affect of
command.text = """ & command.text & """
But that won't work either as it puts "command.text" into the string.
I also tried using QUOTE &.... But that Didn't work either
Any help on this would be greatly appreciated as I'm almost done and don't wanna be shutdown by a silly syntax error.