[plug] Perl 'tie' equivalent for Linux files (not a Perl question)

ryan at is.as.geeky.as ryan at is.as.geeky.as
Fri Oct 4 17:56:16 WST 2002


> From: Craig Ringer

> $ mkfifo test
> $ dd if=/dev/urandom of=test bs=1k count=1 &
> [1] 789
> $ cat test

> From: Trevor Phillips

> I think what you're after can be done with Named Pipes in Perl. Not quite
how
> you describe it, but can do what you want. Basically, you create a node,
> which acts as a FIFO to a Perl script, so reading from the file gets info
> from the script, and writing to it sends info to the script.

Excellent, thanks for that guys.  So it seems perl was indirectly involved
anyway (as a matter of personal preference), how appropriate.

I've give these a try and report back anything worthy of note.  It will
probably end up as another 'Hardly-a-How-to' on my webpage :)

Ryan



More information about the plug mailing list