Proper way to use many PipeableOSProcesses ?

Damien Pollet damien.pollet at gmail.com
Sun Dec 9 18:22:31 UTC 2007


Hi,

I need to pass a bunch of strings through a unix command. I'm using
this repeatedly:

cat := (PipeableOSProcess command: '/bin/cat')
	nextPutAll: aString;
	close.
cat output "do something with that"

After roughly 120 iterations, I get an error "cannot create OS pipe"
from ExternalPipe>>makePipe, and all subsequent PipeableOSProcesses do
that until I relaunch the image. Did I miss something? should I
flush/wait/finalize something?

-- 
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org



More information about the Squeak-dev mailing list