Hello,

I try to initialyze  the  key'hash :

my %Slices ;
open( FH_DF, system( "df -k -F ufs | cut -c 56-100" ) ) ;
while ( <FH_DF> )
{
  $Slices{$key} = '$_' ;
}

Output will be like that :
/
/usr
/home
/opt

That don't work correctly ...

I need first to initialize the key and in a second loop the backup path.
Is it possible ?

for example, second loop :
while ($key) = each %Slice )
{
  $Slice{$value} = `fssnap -i $key  | grep /dev/fssnap | cut -c 33-45` ;

}


What is wrong ?
Thanks for your help


--
________________________________

Jean Berthold
EOS - energie ouest suisse
Chemin de Mornex 10 , CP 570
CH-1001 Lausanne , Switzerland
Tel. : +41 (0)21 341 24 58
Fax  : +41 (0)21 341 20 49
E-Mail : [EMAIL PROTECTED]
________________________________

Reply via email to