[Cuis-dev] fileout. Add tiny helper method in CommandShell

Nicola Mingotti nmingotti at gmail.com
Thu Oct 21 00:54:40 PDT 2021


Hi Dave, guys,

I added (pull req in GitHub) the method exitCode to PipeableOSProcess.

This is for writing something like this:
-------
cmd _ 'cd /home/p/scripts/robotMailer/ ; cat /tmp/mailNewTmpR.txt | 
./robotSendMail.rb'.
p _ PipeableOSProcess waitForCommand: cmd.
p outputAndError . " #('' '') "
p exitCode .            " 0 "
-------

I find it extremely pleasent to read !

It is almost a joy to run external programs :)

bye
Nicola

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211021/fee686c1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PipeableOSProcess-exitCode.st
Type: application/vnd.sailingtracker.track
Size: 234 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211021/fee686c1/attachment.bin>


More information about the Cuis-dev mailing list