[Chicago-talk] return value of failed system call

Richard Reina richard at rushlogistics.com
Mon Aug 1 14:32:04 PDT 2011


I am writing a short script that will install several packages and report if any fail.  The problem I am having is that whether the install fails of succeeds I am getting "0" as a result.  I am doing the follwing:

my $result = system("yum -y install NotA_real_package.hah-ha");

and $result comes back as "0" just as it does when I successfully install a package. I am using CentOS. 

Any help would be greatly appreicated.


-- 
Richard Reina
Rush Logistics, Inc.
Watch our 3 minute movie: 
http://www.rushlogistics.com/movie



More information about the Chicago-talk mailing list