1 Mar 2005 04:39
with-pipe in POSIX
Alejandro Forero Cuervo <bachue <at> bachue.com>
2005-03-01 03:39:36 GMT
2005-03-01 03:39:36 GMT
Hi. I have noticed with-input-from-pipe and with-output-to-pipe. Is there a more generic function that allows my procedure to communicate with the command through both its input and output file descriptors? For example, I need my process to run a ssh command and then talk with it in both directions: write information to the command and read information from the command. Is this possible? I haven't found a function to do this. Would a general with-pipe function be feasible? Currently I'm using the following code: ; -- start -- (declare (foreign-declare #<<EOF #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <stdlib.h> EOF )) (define fork-run-real (foreign-lambda*(Continue reading)
RSS Feed