Could you use Exec ["xdg-open", Application.path &/ "myfile.pdf"]
or is the bad practice ? Note # xdg-open is on most Linux Distros and will open a nominated file with the correct program if there is one installed for this purpose. Regards, Ian Roper ~ Perth - Western Australia. On Sat, 2012-03-03 at 19:26 +0100, Benoît Minisini wrote: > Le 03/03/2012 18:53, M. Cs. a écrit : > > Hi I have two short questions: > > 1. Is it a way to handle a curl request as process? > > I use to call : > > Shell "curl http://www.mysite.com" to $myvar > > This is a bit unsafe. If the net hangs, the program hangs too. Would I > > be able to kill the process, if I created it as: > > $hProcess=Exec["curl","http://www.mysite.com"] > > ? > > Or you can use the gb.net.curl component, that does CURL request > asynchronously. > > > > > 2. I've created a PDF file, and I would like to include it to the > > project package, and let the user open it with a PDF browser. What's > > the path of the included myfile.pdf if I would like to open it with > > shell command in Okular or similar? > > > > Thanks for the fast answer! > > > > Csaba > > You must copy it to a temporary location, because only the Gambas > program can access files located inside its executable. > > Regards, > -- Sent from Ubuntu ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user