Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!mordor!sri-spam!rutgers!ucla-cs!krowney From: krowney@MATH.UCLA.EDU Newsgroups: comp.lang.lisp Subject: Is LISPcraft mistaken? Message-ID: <11022@shemp.UCLA.EDU> Date: 2 Feb 88 20:04:16 GMT Sender: root@CS.UCLA.EDU Reply-To: krowney@MATH.UCLA.EDU (Kevin Rowney) Organization: UCLA Computer Science Department Lines: 34 I am having problems with the inter-process communication facilities running on Franz Lisp. I am running on a Vax under UNIX, and the following is a script session: 1) lisp Franz Lisp, Opus 38.92 -> ;Fire up and get ports to a "wc" process. (setq ports (*process 'wc t t)) (%from-process %to-process 6550) -> ;Feed the running "wc" some input (mapc '(lambda (x) (print x (cadr ports))) '(a b c d)) (a b c d) -> ;Read any results that might have come back (read (car ports)) . . . . On pages 265-266 of LISPcraft Wilensky claims the read command will return the first column of wc's output; however the above read yields nothing and requires a ^C to get the prompt back. Does anyone know what is going awry here? Before you respond please note that I don't care about the "exece" family of commands in that I am not interested in running simple shell commands, but rather I would like lisp to talk with a running C process and vice versa. Also note that I have tried doing a (patom (ascii 4) (cadr ports)) [that is tossing a ^D to the process in order to tell it the input is done] with the same results. If you have any code to manage interprocess communication between Franz and C ,all help would be greatly appreciated. Thanks