Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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.

Comment on Re: tail pipe
Download Code

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 2014-09-17 06:40 GMT
Find Nodes?
    Voting Booth?

    How do you remember the number of days in each month?

    Results (61 votes), past polls