CGI | Tprocess lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- cpalx · 2019-10-01 03:03 Hello i need to execute a external program (console program that generate pdf files) from my CGI. I use Tprocess (sending parameters). The program executes ok, but my CGI dies when i make: 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 MyProc.Options :=  MyProc.Options + [ poWaitOnExit ];   that line makes happen this: Internal Server Error and when i comment that line, it cant find the file that the command line program creates. i tried with sleep (for test), and same, itdoes fiend it. i use Apache2 in ubuntu server 18.04 (64bits) ---------------------------------------------------------------------- cpalx · 2019-10-01 03:22 The solution is: 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     MyProc.Options :=  MyProc.Options + [ poWaitOnExit, poNoConsole ]; ---------------------------------------------------------------------- Thaddy · 2019-10-01 07:00 Maybe add this to the wiki? That is very useful information.