named pipes with mknod

named pipes with mknod

Post by Kevin Hub » Wed, 17 Mar 1993 12:25:42



I am having trouble creating named pipes with mknod.  I would like to
enable my .plan file to do conditional operations for an informational
application that I have in mind.  I would be appreciative if someone
could post or e-mail me an example of linking an executable to a .plan
finger file.

Thank you,

Kevin Huber
CPE Student

 
 
 

named pipes with mknod

Post by Jim Dav » Wed, 17 Mar 1993 15:46:17



>I am having trouble creating named pipes with mknod.  I would like to
>enable my .plan file to do conditional operations for an informational
>application that I have in mind.  I would be appreciative if someone
>could post or e-mail me an example of linking an executable to a .plan
>finger file.

A rather elaborate example was posted to alt.sources about a year ago.  It's
available via anonymous ftp from wuarchive.wustl.edu, in
usenet/alt.sources/articles/4618.Z.  You might want to check the
comp.unix.questions FAQ first; it points out a number of drawbacks and
limitations with named pipe .plans.
--
Jim Davis               | "Out on the street, you'd see all kinds of kids going


 
 
 

1. named pipes using mknod

So what use exactly is a named pipe when created using mknod?  

I ask because I am trying to write something such that I can read (as
opposed to execute) a file, and the script I wrote will be executed and
its output will be read from the file.  

As an example, say my script is 'run'.  I am wondering if I could use
mknod to create a named pipe, 'pipe', such that when I ran something like:

cat pipe

'run' would be executed, and the result would be that I would cat the
output of 'run' to the terminal.

It doesn't seem like this is possible, but I don't know much about mknod
and its uses.  Does anyone know of a way that I might do this (that is,
run a script just by reading a file)?  Also, is there a good resource for
info on mknod, since its man page is about two lines long?

-----------
He was just little!  What's the point of putting him here and taking
him so soon?  It's either mean or it's arbitrary, and either way I've
got the heebie-jeebies.
                -- Calvin

2. Merge, Windows 3.1 and Sunriver

3. Named pipes and mknod...

4. New machine advice

5. Named pipe with mknod

6. Linux 2.4.21-pre5

7. Any compatibility between Unix Named Pipes and NT Named Pipes??

8. help with QWidget

9. NFS mknod pipe failure: OpenBSD server, SunOS client

10. help: mknod and pipe file

11. Help needed pipes and named pipes

12. exit status of the command in pipe from shell & named pipe

13. Regular pipe vs. Named Pipe