From 8d38a2c053cdd7dcd8df0fda6167fdd8e1d2c759 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 10 Jan 2010 23:46:53 -0800 Subject: [PATCH] skip all lines that start with '#'. Now I can have self-plotting data files using #! --- driveGnuPlots.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driveGnuPlots.pl b/driveGnuPlots.pl index b0c5911..d37492c 100755 --- a/driveGnuPlots.pl +++ b/driveGnuPlots.pl @@ -249,6 +249,8 @@ sub mainThread { while( $_ = ($dataQueue && $dataQueue->dequeue()) // <> ) { + next if /^#/o; + if($_ ne "Plot now") { $haveNewData = 1;