![]() |
|
|
|
|
|||||||
| 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 |
| Doubts on FIFO | Akshay | UNIX for Dummies Questions & Answers | 0 | 06-06-2008 04:56 AM |
| FIFO Pipes | tej.buch | UNIX for Advanced & Expert Users | 4 | 02-10-2006 11:01 PM |
| FIFO issue | runawayNinja | High Level Programming | 1 | 04-29-2004 12:10 PM |
| FIFO over NFS | saabir | UNIX for Advanced & Expert Users | 2 | 08-06-2003 05:03 AM |
| Pipe & fifo.... | M3xican | High Level Programming | 4 | 07-20-2002 04:22 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
how to use fifo
hi, I have a problem. I've done a lil program which gets from the server the given persons username a personal folder. I made it with a pipe calling popen with a command, but how can i make the same thing using fifo. I make the fifo with mkfifo() func. and than what. How do I tell the sertver using the fifo file that I need a persons usr name and personal folder.
any kind of help is appreciated. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
A fifo works pretty much like a pipe....
Code:
$ echo one two three | tr t T one Two Three $ mkfifo george $ tr t T < george & [1] 14967 $ echo one two three > george $ one Two Three $ [1] + Done tr t T < george & $ |
|
#3
|
|||
|
|||
|
#4
|
|||
|
|||
|
Are you sure you need fifo's or is it only a trial ?
instead of fifo's you can easly use (unix-) sockets or do 'man socketpair' if you have to processes to connect. |
|||
| Google The UNIX and Linux Forums |