in reply to Re: Failboat -- An Emotionally Disturbed Tool For Checking NetBackup Client Coverage
in thread Failboat -- An Emotionally Disturbed Tool For Checking NetBackup Client Coverage
That is your problem with it, Really?
How about using Perl to do that, since we are doing this in a Perl program:
open my $PIPE, '-|', "/usr/openv/netbackup/bin/admincmd/bpcatlist -cli +ent $client 2>&1" or die "Cannot open pipe from 'bpcatlist' $!"; while ( <$PIPE> ) { next unless /$client/; $lastValidBackupTime = ( split )[ 1 ]; last; } close $PIPE or warn $! ? "Error closing 'bpcatlist' pipe: $!" : "Exit status $? from 'bpcatlist'";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Failboat -- An Emotionally Disturbed Tool For Checking NetBackup Client Coverage
by jffry (Hermit) on Mar 19, 2010 at 16:11 UTC | |
by bpoag (Monk) on Mar 19, 2010 at 18:20 UTC |