[plug] Can this be done?

Russell Steicke russellsteicke at gmail.com
Mon Dec 14 21:31:03 WST 2009


Here's another way to do it, all inside one shell script, to avoid
having an external process waiting for you:

mkfifo allfiles
# Make all the files available on the fifo
cat file? > allfiles &
# Read all the data from the fifo
cat allfiles

Read-once-only, of course.  Writing is not possible like this.  But
given that it's called INPUT, that may not be a problem.  Creating a
unique name instead of allfiles (to prevent multiple instances getting
in each others' way) is left as an exercise for the reader.  :)




-- 
Virus found in this message.



More information about the plug mailing list