scsh-users
[Top] [All Lists]

two process read/write from/to each other

To: scsh@zurich.csail.mit.edu
Subject: two process read/write from/to each other
From: ZHAO Wei <zhaoway@public1.ptt.js.cn>
Date: Fri, 07 Nov 2003 13:49:07 +0800
Hello!

What I want to achieve is that: two processes, one in scsh, the other a usual shell command, to read/write from/to each other.

I tried (|+ ((0 1) (1 0)) ...) but it gives me errors:

Error: fdes was already assigned to an inport
       1

I also tried (run/port (shell command) (= 0 ,(current-output-port))) but still with no luck. There is no error message, but the output from the scsh process is not directed to the shell command but being printed in local display. (I used netcat to test.)

Please help me! Thank you!

--
zhaoway@public1.ptt.js.cn ><##;> ><#;> iloveqhq at http://bbs.nju.edu.cn
http://c2.com/cgi/wiki?ZhaoWay ><#;> http://advogato.org/person/zhaoway/
keywords nanjing.china.linux.filesystem.iptables.garnome.debian.dpkg.rpm
bash.lex.yacc.gcc.lisp.scheme.o'caml.prolog.latex.php.apache.mysql.emacs


<Prev in Thread] Current Thread [Next in Thread>