Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Suffering with buffering - how to wake 'less'

by ahmad (Hermit)
on Jan 12, 2010 at 22:21 UTC ( [id://817072]=note: print w/replies, xml ) Need Help??


in reply to Suffering with buffering - how to wake 'less'

You could try using another command, like:

perl -lwe 'print and /000$/ and warn "HERE$_\n" for 1..1e6' | tail -f

Replies are listed 'Best First'.
Re^2: Suffering with buffering - how to wake 'less'
by benizi (Hermit) on Jan 12, 2010 at 22:38 UTC

    That omits the first 999,990 lines of that sample script. But, as used in my reply to ikegami, it's close to what I'm settling on. dosomething > file &; tail -f file Even though I really just want some 'read the rest of the input' command in 'less'.

      producer > file & tail -n +1 -f file | less ; rm file

      Nah, no good, tail never exits, so less freezes trying to get the end of the file.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found