Hi I managed to do that in Windows using ProcessWrapper new useStdout; startWithShellCommand: aCommand ; upToEnd. where aCommand is something like: "someApp.exe -p params moreParams > G:\other\place\stdou.log" This is what Hernan Morales offered
Gofer it url: 'http://www.smalltalkhub.com/mc/hernan/ProcessWrapper/main'; package: 'ProcessWrapper-Core'; package: 'ProcessWrapper-Plugin'; package: 'ProcessWrapper-Tests'; load.
ProcessWrapper new useStdout; startWithShellCommand: 'dir | sort'; upToEnd
Best Emilio
-----Mensaje original----- De: Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] En nombre de Sean P. DeNigris Enviado el: Viernes, 28 de Marzo de 2014 08:58 Para: pharo-dev@lists.pharo.org Asunto: [Pharo-dev] Capturing stdout
I want to write a test for an NB Mac system call example (Issue 13147). I can check the exit code easily, the output goes to stdout of the image. Can I capture it somehow? thx :)
----- Cheers, Sean -- View this message in context: http://forum.world.st/Capturing-stdout- tp4751320.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.