Re: [Gambas-user] Two short questions

2012-03-04 Thread GMail
On Mon, 2012-03-05 at 12:16 +0800, Ian Roper wrote: > 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.

Re: [Gambas-user] Two short questions

2012-03-04 Thread Ian Roper
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-

Re: [Gambas-user] Two short questions

2012-03-03 Thread M. Cs.
Thank you Benoit! gb.net.curl is great solution. 2012/3/3, Benoît Minisini : > 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.

Re: [Gambas-user] Two short questions

2012-03-03 Thread Benoît Minisini
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

[Gambas-user] Two short questions

2012-03-03 Thread M. Cs.
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.