KingOfMalkier n00b
Joined: 03 Apr 2003 Posts: 47
|
Posted: Thu May 08, 2003 1:32 am Post subject: using FIFO to control an external program |
|
|
I want to be able to send commands to a program and receive the output back, all from within c or c++. In this particular case, the program is clisp. I've been using popen() from the stdlib, but I've been running into a problem. I can start clisp and send it a command, but as soon as it receives the command, it evaluates the expression and then exits. This more or less makes sense since Code: | clisp < file_with_cmds_in_it | behaves the same way. Am I out of luck? Or is there some way to trick clisp and let me send a command, look at the output, then send another? |
|