VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   syntax help when sending a string with quotes (https://forums.vandyke.com/showthread.php?t=13436)

GJB56 03-07-2019 04:04 AM

syntax help when sending a string with quotes
 
I am trying to send this string that contains ". I have tried multiple combinations using """ without luck.

sqlite3 /var/app/sql/abcd.db -header -column "select * from vol.hosts" | grep 40:94

The grep isn't necessary for most queries but it would be nice to know.

GJB56 03-07-2019 07:01 AM

I got it. just had to break it up. Here is an example:

crt.Screen.Send "sqlite3 /var/app/sql/ipho.db -header -column " & """select * from vol.hosts""" & " | grep '40:94'"

bgagnon 03-07-2019 07:15 AM

Hi GJB56,

Thanks for sharing your solution! :)


All times are GMT -6. The time now is 02:02 PM.