[Gambas-user] a Dumb shell question - passing quoted text

Benoît Minisini gambas at ...1...
Thu Feb 11 12:36:51 CET 2010


> Hi List,
> 
> I want to end up with this text to pass to the shell, and it contains
> quotation marks, I wondered how to do that.
> 
> wkhtmltopdf *.html /tmp/temp.pdf --toc --header-right "Page [page]"
>  --footer- center "- EasyGP Medical Records -" --footer-spacing 5
>  --footer-font-name "comic sans ms"
> 
> any help appreciated.
> 
> Regards
> 
> Richard
> 

In Gambas 3, you can use the Shell$() function to quote arguments sent to a 
shell.

And in your example, you should better use Exec instead of Shell to run the 
command.

Regards,

-- 
Benoît Minisini




More information about the User mailing list