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

Re: tail pipe

by BrowserUk (Pope)
on Jun 20, 2013 at 17:55 UTC ( #1040007=note: print w/replies, xml ) Need Help??

in reply to tail pipe

This works for me:

#! perl -slw use strict; my $tail = "c:\\Program Files (x86)\\Windows Resource Kits\\Tools\\tai +l.exe"; ## Create an asynchronous process writing a file to tail system 1, q[ perl -E"$|++; sleep(1),say for 1 .. 1000" > log ];; ## Note: the quoting. my $pid = open PIPE, '-|', qq[ "$tail" /f log ] or die $!;; ## Print the output till the pipe runs dry print while <PIPE>;; __END__ C:\test>junk29 2 3 4 5 6 7 8 9 10 11 12 13 14 Terminating on signal SIGINT(2) Terminating on signal SIGINT(2) C:\test>TAIL: write() failed C:\test>

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2016-10-22 21:48 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (298 votes). Check out past polls.