How can I scape quotes with GsHostProcess?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How can I scape quotes with GsHostProcess?

GLASS mailing list
I have this small reproducible problem. This works correct:

GsHostProcess fork: '/usr/local/bin/wkhtmltopdf  /tmp/content.html /tmp/content.pdf'

But of course, in my real fork I have file paths with blank spaces etc. So originally (when I was using performOnServer:) I was simply using double quotes as follows:

GsHostProcess fork: '/usr/local/bin/wkhtmltopdf  "/tmp/content.html" "/tmp/content.pdf" '

But that doesn't work (no process is forked). I tried all possible combinations to scape the double quotes but I failed. 

What am I missing? I could find anything in the programming guide.

Thanks in advance 

--

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: How can I scape quotes with GsHostProcess?

GLASS mailing list

Mariano,

Which version of GemStone are you using?

Dale


On 07/06/2017 06:52 AM, Mariano Martinez Peck via Glass wrote:
I have this small reproducible problem. This works correct:

GsHostProcess fork: '/usr/local/bin/wkhtmltopdf  /tmp/content.html /tmp/content.pdf'

But of course, in my real fork I have file paths with blank spaces etc. So originally (when I was using performOnServer:) I was simply using double quotes as follows:

GsHostProcess fork: '/usr/local/bin/wkhtmltopdf  "/tmp/content.html" "/tmp/content.pdf" '

But that doesn't work (no process is forked). I tried all possible combinations to scape the double quotes but I failed. 

What am I missing? I could find anything in the programming guide.

Thanks in advance 

--


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: How can I scape quotes with GsHostProcess?

GLASS mailing list

On Thu, Jul 6, 2017 at 3:59 PM, Dale Henrichs via Glass <[hidden email]> wrote:

Mariano,

Which version of GemStone are you using?


3.3.3 on Linux CentOS 7. 


 

Dale


On 07/06/2017 06:52 AM, Mariano Martinez Peck via Glass wrote:
I have this small reproducible problem. This works correct:

GsHostProcess fork: '/usr/local/bin/wkhtmltopdf  /tmp/content.html /tmp/content.pdf'

But of course, in my real fork I have file paths with blank spaces etc. So originally (when I was using performOnServer:) I was simply using double quotes as follows:

GsHostProcess fork: '/usr/local/bin/wkhtmltopdf  "/tmp/content.html" "/tmp/content.pdf" '

But that doesn't work (no process is forked). I tried all possible combinations to scape the double quotes but I failed. 

What am I missing? I could find anything in the programming guide.

Thanks in advance 

--


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass




--

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass