Execute shell/cli program, and get continuous output lazarus / 61-Beginners ---------------------------------------------------------------------- Trenatos · 2015-08-10 17:26 Pretty much what it says on the tin, I'm looking for a way to start a program from shell, and get continuous output from that shell. No idea where to begin, someone can point me in right direction? ---------------------------------------------------------------------- eny · 2015-08-10 18:35 http://wiki.lazarus.freepascal.org/Executing_External_Programs#Reading _large_output Or: 'command' > output.txt ---------------------------------------------------------------------- Trenatos · 2015-08-10 18:48 I found an example that seems to do the trick. Next hurdle: How do I set the background color of a single line in TMemo or SynEdit? ---------------------------------------------------------------------- Edson · 2015-08-10 18:56 For to capture large output text of a process, I use my library UnTerminal: https://github.com/t-edson/UnTerminal And for to see it "in action", with highlighting, you can see my Terminal: https://github.com/t-edson/Tito-s-Terminal ---------------------------------------------------------------------- Trenatos · 2015-08-10 19:05 Edson, cool, will take a look  Also, I spoke too soon, I can make it run the dir from the example, but can't figure out how to make it run a java program ---------------------------------------------------------------------- Edson · 2015-08-10 19:53 I suppose you are in windows. I haven't used for java programs. Technically you can run any process, like "explorer".  If you have problems, you could pack your program in a "bat" file. ---------------------------------------------------------------------- Trenatos · 2015-08-10 19:57 I'm on windows, yes. I know I'm supposed to be able to, but I can't figure it out, I've tried a bunch of stuff. I made a new thread, since it's a specific problem I'm having with TProcess ---------------------------------------------------------------------- Edson · 2015-08-10 20:30 What is the java program or command in what you want to capture the output? ---------------------------------------------------------------------- Trenatos · 2015-08-10 21:19 If I can get java -version working, and outputting to TMemo/SynEdit, I can move on to the next part of making it run what I need, and formatting the output, so java -version is step 1 ---------------------------------------------------------------------- Edson · 2015-08-10 21:31 Something like this?: