more useful options | |
PerlMonks |
Re^3: watch-script.pl | less +F buffering problem?by liverpole (Monsignor) |
on Aug 18, 2006 at 14:30 UTC ( [id://568165]=note: print w/replies, xml ) | Need Help?? |
That's because, in the case of:
the end-of-file is encountered as soon as the program finishes, so the pipe gets the end-of-file, and less knows it has received all the input it's going to get. Here's a good way to test it -- try executing the following command:
Now the input buffer to less will fill up almost immediately, so you'll see the output right away. However, if you execute the command "G", it will never find the end-of-file, because the end-of-file hasn't been written yet! Similarly if you execute the same command with less +G at the end instead of less, you'll never see output for the same reason. s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
In Section
Seekers of Perl Wisdom
|
|