<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Hilaire,</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I ran into this problem as well and implemented it via FFI. It's much lighter weight than the full OSProcess package (that I only learned about after I implemented it). This was from a few years ago. I'll see if I can find it. If not, it is quite simple to
call into the glibc library for both functions and shared variables.</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="ms-outlook-mobile-signature" style="color: inherit; background-color: inherit;">
<p class="WordSection1" style="background-color: white; margin: 0in;"><span style="font-family: "Segoe UI", sans-serif; font-size: 10pt; color: rgb(9, 51, 95);"><b>Jon Raiford</b></span></p>
<p class="WordSection1" style="text-align: left; background-color: white; margin: 0in;">
<span style="font-family: "Segoe UI", sans-serif; font-size: 10pt; color: rgb(9, 51, 95);"><b>LabWare Holdings
</b>|<b> </b></span><span style="font-family: "Segoe UI", sans-serif; font-size: 10pt; color: rgb(32, 31, 30);">3 Mill Road, Suite 102, Wilmington, DE 19806</span></p>
<p class="WordSection1" style="text-align: left; background-color: white; margin: 0in;">
<span style="font-family: "Segoe UI", sans-serif; font-size: 10pt; color: rgb(9, 51, 95);"><b>Tel:</b></span><span style="font-family: "Segoe UI", sans-serif; font-size: 10pt; color: rgb(32, 31, 30);"> (302) 658-8444 ext. 121 |
</span><span style="font-family: "Segoe UI", sans-serif; font-size: 10pt; color: rgb(9, 51, 95);"><b>Email:</b> </span><span style="font-family: "Segoe UI", sans-serif; font-size: 10pt; color: rgb(12, 100, 192);"><u>raiford@labware.com</u></span></p>
<p class="WordSection1" style="text-align: left; background-color: white; margin: 0in;">
<span style="color: black;"> </span></p>
<p class="MsoNormal"><span style="font-size: 12pt;"> </span></p>
</div>
<div id="mail-editor-reference-message-container" style="color: inherit; background-color: inherit;">
<div class="ms-outlook-mobile-reference-message skipProofing" style="direction: ltr;">
</div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor; font-family: Aptos; font-size: 12pt; color: black;">
<b>From: </b>Cuis-dev <cuis-dev-bounces@lists.cuis.st> on behalf of Hilaire Fernandes via Cuis-dev <cuis-dev@lists.cuis.st><br>
<b>Date: </b>Sunday, March 15, 2026 at 3:33 PM<br>
<b>To: </b>cuis-dev@lists.cuis.st <cuis-dev@lists.cuis.st><br>
<b>Cc: </b>Hilaire Fernandes <hfern@free.fr><br>
<b>Subject: </b>Re: [Cuis-dev] OSProcess standard output<br>
<br>
</div>
<p class="ms-outlook-mobile-reference-message skipProofing"><span style="font-size: 18px;">Hi Dave,</span></p>
<p class="ms-outlook-mobile-reference-message skipProofing"><span style="font-size: 18px;">Thanks for the tips. I will check it out.</span></p>
<p class="ms-outlook-mobile-reference-message skipProofing"><span style="font-size: 18px;">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?</span></p>
<pre><div class="ms-outlook-mobile-reference-message skipProofing" style="font-size: 18px;">| 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.</div></pre>
<p class="ms-outlook-mobile-reference-message skipProofing"><span style="font-size: 18px;">Is CommandShell the only way to have standard output with going through a file on disk?</span></p>
<p class="ms-outlook-mobile-reference-message skipProofing"><span style="font-size: 18px;">Thanks</span></p>
<p class="ms-outlook-mobile-reference-message skipProofing"><span style="font-size: 18px;">Hilaire</span></p>
<pre><div class="moz-signature">--
<a href="http://mamot.fr/@drgeo" class="moz-txt-link-freetext" data-outlook-id="ec146f8b-c740-4096-b3e8-a530962a8ba6">http://mamot.fr/@drgeo</a></div></pre>
</div>
</body>
</html>