![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | 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 |
| pipe output to script as command line argument | IMTheNachoMan | UNIX for Dummies Questions & Answers | 3 | 04-26-2008 09:59 AM |
| how to pipe output of here-document!! | sami98 | Shell Programming and Scripting | 7 | 02-17-2008 06:40 AM |
| grep string and output filename | happyv | Shell Programming and Scripting | 3 | 11-19-2007 08:16 PM |
| read file and output message | happyv | Shell Programming and Scripting | 12 | 01-24-2007 05:57 PM |
| Output the message | ust | UNIX for Dummies Questions & Answers | 1 | 09-25-2005 05:35 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
output string message to pipe
i am new to linux programming. can anyone answer my question?
there is one pipe file "my_pipe" prw-r--r-- 1 john rnd 32 Aug 17 19:45 my_pipe how to output string message (char*) to this pipe? which API should I use? |
| Forum Sponsor | ||
|
|
|
|||
|
If you have opened the pipe via pipe system cmd then you must have access to 2 file descriptors which are read and write ends for pipe. You can write on the write end of pipe using the 'write' system call.
A better help would be Beej's guide for IPC. regards Apoorva Kumar |