Parse and plot data received from log-file on-the-fly
问题 I want to create a Perl (or Bash) script to create and plot data on-the-fly. That means I want to extract data from a log-file file.log , ideally don't write a tmp-file (if it's only possible with a tmp-file, this would be fine too) and plot with Gnuplot. As the logfile is growing, I want to see the additional information in the plot. See this question for similar topic. For Perl, what I have so far is this script: #!/usr/bin/perl use strict; use warnings; my $path = "file.log"; my @grepped;