OSSubprocess
OSSubprocess copied to clipboard
Forking Operating System Processes from within Pharo Language
This: ``` OSSUnixSubprocess new command: '/bin/ls'; arguments: #('-la' '/net/pirx/srv/nfs/music/Electro/Röyksopp'); redirectStdout; runAndWaitOnExitDo: [ :process :outString | outString inspect ] ``` doesn't work. I guess it is because of the umlaut.
I would like to create a process without any environment variables, but my conclusion after a study of the code is that it isn't possible. The key comment in `OSSUnixSubprocess>>#buildPrimitiveEnvArgument`...
The class comment on `OSSUnixSubprocess` gives an example for output redirection saying ``` redirectStderrTo: '/tmp/stderrFile.txt' asFileReference writeStream ``` This no longer works because of the new file stream implementation. Is...
When running any sort of command, including the first example ```smalltalk OSSUnixSubprocess new command: '/bin/ls'; arguments: #('-la' '/Users'); redirectStdout; runAndWaitOnExitDo: [ :process :outString | outString inspect ] ``` the process...
I’ve been trying to use `OSSubprocess` to interact with a REPL environment which requires me to write to the input stream, and read the result back, over and over again....
OSSAttachableFileStream inherits from StandardFileStream that is deprecated since Pharo 7. It should be replaced by the new file implementation.
`#waitForExitPollingEvery: aDelay retrievingStreams: true` seems less useful than it could be due to having no way (that I can see) to access the retrieved output and error streams' contents. The...
Now if you will run pharo on MacOS using Finder (by drag and drop image for example) tests which generate temp files will fail. The problem is that working directory...