From: oetiker Date: Tue, 11 Oct 2005 16:37:58 +0000 (+0000) Subject: the images should be written to the current directory ... -- Alex X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=commitdiff_plain;h=cffc3b561fbc7bafbde87b10edf18013df3da531;hp=70f35e3bbca2e4172289295f01aaea6735a42b15 the images should be written to the current directory ... -- Alex git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@699 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/examples/4charts.pl.in b/examples/4charts.pl.in index beeb6f4..828595c 100755 --- a/examples/4charts.pl.in +++ b/examples/4charts.pl.in @@ -8,6 +8,7 @@ use RRDs; my $start=time; my $rrd="randome.rrd"; my $name = $0; +$name =~ s/.*\///g; $name =~ s/\.pl.*//g; RRDs::create ($rrd, "--start",$start-1, "--step",300, diff --git a/examples/bigtops.pl.in b/examples/bigtops.pl.in index b3fa6e4..0f5d98c 100755 --- a/examples/bigtops.pl.in +++ b/examples/bigtops.pl.in @@ -6,6 +6,7 @@ use RRDs; my $start=time; my $rrd="randome.rrd"; my $name = $0; +$name =~ s/.*\///g; $name =~ s/\.pl.*//g; RRDs::create ($rrd, "--start",$start-1, "--step",300, diff --git a/examples/minmax.pl.in b/examples/minmax.pl.in index 29c0169..1e94a6f 100755 --- a/examples/minmax.pl.in +++ b/examples/minmax.pl.in @@ -6,6 +6,7 @@ use RRDs; my $start=time; my $rrd="randome.rrd"; my $name = $0; +$name =~ s/.*///g; $name =~ s/\.pl.*//g; RRDs::create ($rrd, "--start",$start-1, "--step",300, @@ -48,4 +49,4 @@ if ($ERROR = RRDs::error) { print "This script has created $name.png in the current directory\n"; -print "This demonstrates the use of the TIME and % RPN operators\n"; +print "This demonstrates the use of MIN and MAX archives\n";