Process and Terminal lazarus / 21-General ---------------------------------------------------------------------- amedeo · 2022-04-18 07:10 Hallo, I want to read a CDROM and I use icedax or cdd2wav command. if into terminal I write the command line it go right but I want to execute command and not to see terminal please somebody can tell me why the execution of this code show me terminal but not the string Add-ed? where I forgot in code? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Code: Pascal  [Select]      AProcess:= TProcess.Create(nil);      AProcess.Executable:='gnome-terminal';      AProcess.Parameters.Clear;      AProcess.Parameters.Add('icedax -J -q -v titles -D '+LblEdtCDRomSel.Text) ;    //  AProcess.Options := AProcess.Options + [poWaitOnExit];      AProcess.Execute;      AProcess.Free;    Thanks ---------------------------------------------------------------------- PascalDragon · 2022-04-18 10:44 You need to use icedax as the application and add the parameters separately: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i AProcess.Ex ecutable:='icedax';AProcess.Parameters.Add('- J');AProcess.Parameters.Add('-q');AProcess.Parameters.Add('- v');AProcess.Parameters.Add('titles');AProcess.Parameters.Add('- D');AProcess.Parameters.Add(lblEdtCDRomSel.Text); ---------------------------------------------------------------------- amedeo · 2022-04-18 15:35 icedax is not a executable file in /bin ---------------------------------------------------------------------- marcov · 2022-04-18 15:42 Does gnome-terminal "icedax -J -q -v titles -D blablabla" (with blabla for  LblEdtCDRomSel.Text)  work if you enter it on the commandline ? Because that is what your code does. It gives the whole icedax line as one single parameter. If you want to do it separate, you need to do it like Pascaldragon does with multiple adds ---------------------------------------------------------------------- amedeo · 2022-04-19 10:18 Thank for your attention but the string: 'gnome-terminal "icedax -J -q -v titles -D blablabla" ' in Executable return me error: 'not found' If I use in Executable: 'gnome-terminal'  (not 'gnome-terminal ') and in the terminal window the command  'icedax ....' it works good ---------------------------------------------------------------------- marcov · 2022-04-19 11:10 Quote from: amedeo on April 19, 2022, 12:18:50 pmThank for your attention but the string: 'gnome-terminal "icedax -J -q -v titles -D blablabla" ' in Executable return me error: 'not found' Then first fix that, and find one single commandline to open a terminal and run icedax before trying to put it in code. One could also argue that you don't really need a terminal, and searching the binary before passing it to tprocess might be an option. ---------------------------------------------------------------------- amedeo · 2022-04-19 11:45 really I do not need terminal but I used it to run icedax. How can I do it without terminal? I do not know how. Can you please give me some idea