El 02/09/11 08:43, John Rose escribió: > it calls a routine containing a statement of the form: > EXEC ["get_iplayer", "--force", "--type=" & sType] TO sOutput > where sType & sOutput are both strings with sType having the value "TV". > This is equivalent to "get_iplayer --force --type="TV" run in a Gnome > Terminal
Well, as I've seen, there is a subtle difference in the way you wrote the command in gambas: there are missing quotes in the --type argument, compared as you have wrote it in the console: get_iplayer --force --type="TV" so the gambas part should read: EXEC ["get_iplayer", "--force", "--type=\"" & sType & "\""] TO sOutput or the other way: arg = Subst("--type=\"&1\"", sType) EXEC ["get_iplayer", "--force", arg] TO sOutput You might escape the quotes in gambas, in case your script is expecting a quoted string. Hope this helps, regards -- Jesus, EA7DFH ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user