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
This commit is contained in:
nott 2008-06-25 13:12:52 +00:00
parent 34c19ca896
commit 911364a69b

View File

@ -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";