[Cuis-dev] OSProcess standard output
lewis at mail.msen.com
lewis at mail.msen.com
Sun Mar 15 10:36:21 PDT 2026
Hi Hilaire,
CommandShell for Cuis is not complete, but it may be good enough to do
what you want here.
The repository is at
https://github.com/dtlewis290/Cuis-Smalltalk-CommandShell
If you can clone it and do "Feature require: #CommandShell' you should
then be able to do this:
(ProxyPipeline command: 'ls | cat | wc') upToEndOfFile
==> ' 13 13 172
' .
See the class comment for ProxyPipeline and the examples in
ProxyPipeline class>>#command:
I have to emphasize that this package is not complete, and additional
thinking is needed to figure out how to make it work well in Cuis.
Nevertheless, the ProxyPipeline may be of some use even now.
HTH,
Dave
On 2026-03-15 10:47, Hilaire Fernandes via Cuis-dev wrote:
> Hi,
>
> How to get the standard output from a command executed by OSProcess:
>
> OSProcess evaluate: 'ls | cat | wc'
>
> This command does not work. CommandShell missing.
>
> Is there another way to get the standard output?
>
> Thanks
>
> Hilaire
>
> --
> http://mamot.fr/@drgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260315/96e4cdce/attachment.htm>
More information about the Cuis-dev
mailing list