From ef99f0ec7fa4ea8fed2ff57ac5e0456f8ba9d246 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 24 Aug 2011 18:06:14 +0000 Subject: [PATCH] change genimage.pm to use runcmd streaming not runcmd_S which is removed git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10359 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/genimage.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/genimage.pm b/xCAT-server/lib/xcat/plugins/genimage.pm index 65da1995f..15e0659bf 100644 --- a/xCAT-server/lib/xcat/plugins/genimage.pm +++ b/xCAT-server/lib/xcat/plugins/genimage.pm @@ -292,8 +292,8 @@ sub process_request { # now run the specific genimage command $callback->({info=>["$cmd"]}); $::CALLBACK=$callback; - #my $output = xCAT::Utils->runcmd("$cmd", 0, 1); - my $output = xCAT::Utils->runcmd_S("$cmd", 0, 1); # stream output + #my $output = xCAT::Utils->runcmd("$cmd", 0, 1); # non-stream + my $output = xCAT::Utils->runcmd("$cmd", 0, 1, 1); # stream output open(FILE, ">/tmp/genimageoutput"); foreach my $entry (@$output) { print FILE $entry;