Hiho,
I've got some probs. With my Script. which looks like this:
#!/usr/bin/perl
system "rsh Baba disk status >output";
$volstatus="output";
open(FP,$volstatus);
while(<FP>){
# throw away \n
chomp();
$line = $_;
next unless $line =~ /^*.*/;
(@items) = $line =~ /(\w+)\s+\d/;
printf("%s\n",
$items[0]);
}
Which gives me an Output like:
Dev
dev1
dev2
dev3
(Those names can change any time!)
I would like to put each line in a separate Array. Cause each array will have his one Table.
I don’t know the output from the first Script unless the Script has been done.
Any Ideas?
Many Thanks
Daniel
I've got some probs. With my Script. which looks like this:
#!/usr/bin/perl
system "rsh Baba disk status >output";
$volstatus="output";
open(FP,$volstatus);
while(<FP>){
# throw away \n
chomp();
$line = $_;
next unless $line =~ /^*.*/;
(@items) = $line =~ /(\w+)\s+\d/;
printf("%s\n",
$items[0]);
}
Which gives me an Output like:
Dev
dev1
dev2
dev3
(Those names can change any time!)
I would like to put each line in a separate Array. Cause each array will have his one Table.
I don’t know the output from the first Script unless the Script has been done.
Any Ideas?
Many Thanks
Daniel