![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tee into 2 named pipes | zzol | UNIX for Advanced & Expert Users | 9 | 12-12-2006 08:10 PM |
| FIFO named pipes | tej.buch | Shell Programming and Scripting | 1 | 02-10-2006 12:15 AM |
| cd using pipes | Sinbad | Shell Programming and Scripting | 2 | 09-09-2004 11:05 AM |
| PIPEs and Named PIPEs (FIFO) Buffer size | Jus | Filesystems, Disks and Memory | 1 | 08-20-2004 11:14 AM |
| named pipes | truma1 | Shell Programming and Scripting | 4 | 11-21-2001 12:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Quote:
varungupta has explained the behaviour of normal command piping. In this case, the OS creates a temporary file for doing the work (a pipe), but you cannot reference explicitly this pipe by name, because is managed internally by the OS. If you specifically need to put in communication two or more processes through NAMED pipes, you have to create a FIFO with mknod as explained before. In this manner you can reference explicitly the file on disk. Generally, named pipes are used in the cases where a specific command line utility doesn't accept pipes as input, and you are forced to pass a phisical file to the utility as the input data. For these situations, named pipes are the answer. |
|
||||
|
Quote:
command1 | command2 means the o/p of command1 will be given as an input to command2. Ex: grep "abc" file1 | wc -l Means the o/p of grep command will be given to wc -l as input to count the no. of lines where "abc" has found in the file1 Is that you were looking for ?? If not, then explain your Q, once again !! Thnks. !! |
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|