From 911364a69b4b880cacf2e7a5219e8fe8ac121780 Mon Sep 17 00:00:00 2001 From: nott Date: Wed, 25 Jun 2008 13:12:52 +0000 Subject: [PATCH] Use runcmd instead of call to system. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1757 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcataixpost | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index 2e8bc70a7..986540815 100644 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -86,9 +86,7 @@ if (&runcmd($chcmd) != 0) { # check & run the postscript if (-f $scriptname) { - # TODO - change this to runcmd?? - my $rc = system("$scriptname"); - if ($rc >> 8) + if (&runcmd($scriptname) != 0) { print "$::sdate xcataixpost: Could not run $scriptname.\n"; print $::LOG_FILE "$::sdate xcataixpost: Could not run $scriptname.\n";