Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-07-13 11:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (249 votes), past polls