Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
using FIFO to control an external program
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
KingOfMalkier
n00b
n00b


Joined: 03 Apr 2003
Posts: 47

PostPosted: Thu May 08, 2003 1:32 am    Post subject: using FIFO to control an external program Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum