![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| read and write from a file | rinku | Shell Programming and Scripting | 2 | 01-10-2008 10:22 PM |
| Problem with read & write | EltonSky | High Level Programming | 11 | 08-31-2006 11:35 AM |
| sed to read and write to very same file | 435 Gavea | Shell Programming and Scripting | 5 | 06-29-2006 08:04 PM |
| How to implement read/write thread | shilpi_gup | High Level Programming | 1 | 10-23-2005 11:35 PM |
| read, write & STDOUT_FILENO.... | M3xican | High Level Programming | 2 | 07-17-2002 01:41 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
popening for read and write
How can 'popen()' be used for reading and writing to opening pipe?
If i try 'popen("prog", "rw")' and then put and get chars - it does not work. What is wrong? |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
popen can't do rw because it's buffered. You will have to do your own fork()/exec() and fd manipulation.
|
||||
| Google The UNIX and Linux Forums |