Problems with TProcess and wget lazarus / 1-Linux ---------------------------------------------------------------------- kevinspencer33 · 2009-12-23 17:26 I'm trying to do a kind of wget front-end, and I have a big problem with Tprocess... the program executes well programs but never appears the index.html file I try todownload for testing. I'm not sure if it's downloaded and I can't find it or it don't work at all. Code: [Select]procedure TForm1.BitBtn3Click(Sender: TObject); var AStringList: TStringList; begin    AStringList := TStringList.Create;    Process1.CommandLine := 'wget '+ edit1.Text;    Process1.CurrentDirectory := '/home/isaac/';    form1.Caption:= Process1.CommandLine;    Process1.Options := Process1.Options + [poWaitOnExit];    Process1.Execute;    AStringList.Free; end;          I hope somebody can help me. ---------------------------------------------------------------------- theo · 2009-12-23 17:40 Process1.CommandLine := FindDefaultExecutablePath('wget')+' '+ edit1.Text; ---------------------------------------------------------------------- kevinspencer33 · 2009-12-23 18:08 Thanks bu it seems that this isn't  the problem... i thing the problem is the output file, because  I can execute other programs. I've put this line Code: [Select] Process1.CurrentDirectory := '/home/isaac/';just to try if its downloaded to  "/home/isaac/"... and it don't work...  Or there is another way to do it? ---------------------------------------------------------------------- Mike J · 2009-12-23 18:42 Try using an explicit -o for output when calling wget. ---------------------------------------------------------------------- kevinspencer33 · 2009-12-23 20:09 Tried too... no results.... And I discovered something : the  "Process1.ExitStatus" returns 2.... so I'll Google it later and try to figure out what's happening. ---------------------------------------------------------------------- kevinspencer33 · 2009-12-24 02:14 I installed a newer version of Lazarus, and Tprocess work well... but the project that i was coding don't run well... so lucky is the first part of the program that I've write. ---------------------------------------------------------------------- mica · 2009-12-24 11:20 if you try to download a file/website/picture better use curlpas or synapse http://curlpas.sourceforge.net/curlpas/index.html http://www.synapse.ararat.cz/doku.php there are a lot of examples too