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

David T. Lewis lewis at mail.msen.com
Thu Oct 21 19:14:35 PDT 2021


Merged, thanks Nicola.

Dave

On Thu, Oct 21, 2021 at 09:54:40AM +0200, Nicola Mingotti via Cuis-dev wrote:
> 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
> 



More information about the Cuis-dev mailing list