How to execute external commands

For an introduction on working with external processes, see How to work with external child processes.

The class GtSubprocessWithInMemoryOutput Object subclass: #GtSubprocessWithInMemoryOutput instanceVariableNames: 'builder shellCommand process errorBlock command envVariables semaphore stdoutStream stderrStream stdoutBuffer stderrBuffer outputPoll terminateOnShutdown stdinStream retryCount pollException' classVariableNames: '' poolDictionaries: 'LibCSignalSharedPool' package: 'GToolkit-Utility-System' , which is now deprecated, was a convenience wrapper around GToolkit-ExternalProcess for the common case of executing a command and capturing stdout and stderr and was compatible with the Pharo OSSubProcess library.

Child pages show various use cases of using this class to execute commands.