Talking to UNIX co-processes from within Squeak?

Stephen Pope stp at create.ucsb.edu
Sat May 15 13:53:05 UTC 1999


"David T. Lewis" wrote:
> [...] 
> The things we need access to at the OS level should be just a few
> basics like getpid(2), fork(2), exec(2), pipe(2), and access to
> the streams on stdin, stdout, and stderr. 

Exactly! I look forward to your progress. In VisualWorks, the basic call is the
following:

	UnixProcess forkJob: commandFileName 
		arguments: argvStringARray
		environment: stringDictionary 
		descriptors: arrayOf3Streams 

i.e., fork/exec/pipe is not exposed at the Smalltalk level. You can build all
sorts of simpler functions on top of this primitive.

-- 
stp

  Stephen Travis Pope
  stp at create.ucsb.edu      http://www.create.ucsb.edu/~stp/





More information about the Squeak-dev mailing list