Invalid/bad example project on Lazarus wiki page lazarus / 8-Other ---------------------------------------------------------------------- dotniet · 2009-10-14 16:02 Hi. The TProcess example provided on Lazarus web site: https://lazarus- ccr.svn.sourceforge.net/svnroot/lazarus-ccr/examples/process is not working with some applications like 'ls' and 'dir'. If the output generated by these applications is too short, then the demo application will not capture their output. I need to fix that. ---------------------------------------------------------------------- dotniet · 2009-10-16 08:51 bump ---------------------------------------------------------------------- theo · 2009-10-16 09:08 Does it work with the examples here?: http://wiki.lazarus.freepascal.org/Executing_External_Programs ---------------------------------------------------------------------- dotniet · 2009-10-16 09:45 None of the examples are working properly. The third one si working with 'dir' but not with 'ping www.test.com'. The forth one (the one in the 'Using input and output of a TProcess - See processdemo example in the Lazarus-CCR SVN') is working with the ping but not with dir. Basically if one code example will work with a command that produces static output (dir) will not work with a command that is producing dynamic outpur (ping) and the other way arround. ---------------------------------------------------------------------- Vincent Snijders · 2009-10-16 13:24 On what platform (linux/windows?) did you test? ---------------------------------------------------------------------- dotniet · 2009-10-16 14:57 Linux. I have seen a somebody else on a mailing list (lazarus at miraclec.com) complaing about the same behaviour. ---------------------------------------------------------------------- Vincent Snijders · 2009-10-16 15:06 Can you give a link to the archives with the email in which he complains? ---------------------------------------------------------------------- dotniet · 2009-10-16 15:58 I don't have the link anymore but I think it should show up at a search for TProcess and Plink on that specific domain. Anyway, just try to run the demo on Lazarus web site with dir or ls. You will see there is no output. ---------------------------------------------------------------------- dotniet · 2009-10-19 15:15 Here is the link: http://www.mail- archive.com/lazarus@lazarus.freepascal.org/msg07918.html The author complains that TProcess losses parts of the output. ---------------------------------------------------------------------- Vincent Snijders · 2009-10-19 17:07 I am looking at it, but I have other things on my todo too. You may create a bug report in the Lazarus CCR project part of the bug tracker. ---------------------------------------------------------------------- dotniet · 2009-10-21 14:16 I will submit this tomorrow AFTER I try to download the latest version of Lazarus. I use SVN because I cannot install packages in my computer (non-root account).