On Mar 9, 2007, at 11:38 AM, Charles Yeomans wrote: > On Mar 9, 2007, at 1:24 PM, Tim Jones wrote: > >> Hi Folks, >> >> I've a need to use popen for an operation that I can't achieve with >> the RB Shell class. Does anyone have a soft declare for popen() in >> libc? The prototype is: >> >> FILE * popen(const char *command, const char *type); > > > This looks pretty simple; I'll knock out an example if I can find a > bit of time.
Thanks, Charles. What I'm running up against is the FILE being a pointer to a struct. Since I'll be using fread(), fwrite(), and feof () to access the opened pipe, I don't really need the struct, but only the filehandle. My curiosity is in how to handle the FILE pointer returned and turn it into the filehandle (using fileno() ). Tim _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
