Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Active Munging via a pipe (code)

by Zaxo (Archbishop)
on Jan 17, 2002 at 06:51 UTC ( #139423=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ mkfifo logpipe
    $ perl -e 'open PIPE, "< logpipe"; { select 1<<fileno(PIPE),undef,unde
    +f,undef; print <PIPE>;redo}' &
    
  2. or download this
    $ echo foo >logpipe
    foo
    ...
    echo fie >logpipe
    fie
    $
    
  3. or download this
    $ fg
    perl -e 'open PIPE, "< logpipe"; {select 1<<fileno PIPE,undef,undef,un
    +def;print <PIPE>;redo}'
    # do a Ctrl-C here
    $
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://139423]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2023-06-01 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?