tharel has asked for the wisdom of the Perl Monks concerning the following question:
Does anybody know how to fix/get around this?#!/bin/env perl use strict; use warnings; use Net::SCP::Expect; my $cmd = qq{rpm -qa | grep cluster}; print (" - Running ($cmd) \n"); my @out = `$cmd`; my $err = $?; if ($err) { print "Could not find cluster rpm's, err: $err +\n"; exit 1; } exit 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SCP::Expect causes error in return code
by Illuminatus (Curate) on Dec 06, 2010 at 16:22 UTC | |
|
Re: Net::SCP::Expect causes error in return code
by sierpinski (Chaplain) on Dec 06, 2010 at 14:23 UTC | |
by cdarke (Prior) on Dec 06, 2010 at 15:21 UTC | |
by sierpinski (Chaplain) on Dec 06, 2010 at 15:29 UTC |