in reply to Re: Net::SSH::Expect output
in thread Net::SSH::Expect output
while ( defined ($line = $ssh->read_line()) ) { if($line =~ m/zfs/) { open(MIR,">>$MIRRORS"); print MIR "$_ - has ZFS root, no metadevices e +xist\n"; close(MIR); } else { # Not ZFS, presumably ufs # Execute SVM Mirror check - looking for unsyn +ched mirrors my $mirror_output = $ssh->send("$mirror_cmd"); my $line2; while ( defined ($line2 = $ssh->read_line()) ) + { my $tmpcount = ($line2 =~ tr/d//); if($tmpcount < 3) { open(MIR,">>$MIRRORS"); print MIR "$_: "; chomp(); print MIR "$line2 - Not Mirror +ed\n"; close(MIR); } } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::SSH::Expect output
by pileofrogs (Priest) on Jul 23, 2009 at 18:00 UTC | |
by sierpinski (Chaplain) on Jul 23, 2009 at 19:09 UTC | |
by pileofrogs (Priest) on Jul 23, 2009 at 19:47 UTC |