Amanda-Users

Re: amoverview

2004-04-21 07:00:18
Subject: Re: amoverview
From: Christian Molière <christian.moliere AT wanadooportails DOT com>
To: Paul Bijnens <paul.bijnens AT xplanation DOT com>
Date: Wed, 21 Apr 2004 12:57:59 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul,

        with this line : map("substr(\"\$level{\$host}{\$disk}{'$_'}\",-2)",
sort keys %dates))
it runs.

Thanks for your help and your explanations.

Paul Bijnens wrote:
| Christian Molière wrote:
|
|> I tried in using your code line but it doesn't
|> run with this error message :
|> syntax error at (eval 4) line 3, near "},"
|
|
| Of course, substr should have been inside the quotes.
| Like this:
|
|  map("substr(\$level{\$host}{\$disk}{'$_'},-2)", sort keys %dates)) ...
|
|
| Giving this block:
|
|  152 my $out_format = "format STDOUT =\n" .
|  153     "@" . "<" x ($opt_hostwidth - 1) . ' ' .
|  154     "@" . "<" x ($opt_diskwidth - 1) . ' ' .
|  155     '@> ' x scalar(keys %dates) . "\n" .
|  156     join(', ', '$host', '$disk',
|  157          map("substr(\$level{\$host}{\$disk}{'$_'},-2)", sort
keys
| %dates)) . "\n" .
|  158     ".\n";
|
| Aoperently not enough cafeine yet when I wrote my previous mail :-)
| Now I tested it out myself (but not having a 3-byte code in my overview
| to really really verify if it works).
|

- --

Cordialement,
Sincerely,

Christian MOLIERE

Tél : 01.43.60.11.60



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAhlO1Z30NRCZKZ48RAlEDAKCYkFmy6205uWszjCXmz60jwgdAOwCeK8zZ
8YKe0w7GdajGUjO2osb0zEI=
=JW6h
-----END PGP SIGNATURE-----


<Prev in Thread] Current Thread [Next in Thread>