[Cuis-dev] OSProcess standard output
lewis at mail.msen.com
lewis at mail.msen.com
Sun Mar 15 14:24:32 PDT 2026
Yes, CommandShell is currently the only way to do it without going to a
file.
Dave
On 2026-03-15 19:33, Hilaire Fernandes via Cuis-dev wrote:
> Hi Dave,
>
> Thanks for the tips. I will check it out.
>
> In the meantime I tried this with OSProcess (thanks Nicola for your
> cookbook), but its seems the output stream must be a file, which I
> would like to avoid. Am I correct?
>
> | proc d outStream |
> d := Delay forMilliseconds: 50.
> outStream := ReadWriteStream on: String new.
> proc := UnixProcess
> forkJob: '/usr/bin/bash'
> arguments: {'-c'. 'ls -l'}
> environment: nil
> descriptors: {nil. outStream.nil}.
> [proc runState == #complete] whileFalse: [d wait].
> outStream contents.
>
> Is CommandShell the only way to have standard output with going through
> a file on disk?
>
> Thanks
>
> Hilaire
>
> --
> http://mamot.fr/@drgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260315/d3060d91/attachment.htm>
More information about the Cuis-dev
mailing list