fixed bug 3288. when xdsh with -e and -E, the environment file should be copied to the target-node firstly through fork_no_output()

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14915 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2013-01-18 03:37:00 +00:00
parent 00710fc339
commit 8d6ca24d40

View File

@ -1154,10 +1154,10 @@ sub fork_fanout_dsh
"TRACE:Environment: Exporting File.@env_rcp_command ";
$dsh_trace && (xCAT::MsgUtils->message("I", $rsp, $::CALLBACK));
# copy the Env Variable input file to the nodes
#my @env_rcp_process =
# xCAT::DSHCore->fork_no_output($user_target, @env_rcp_command);
#waitpid($env_rcp_process[0], undef);
push @commands, \@env_rcp_command;
my @env_rcp_process =
xCAT::DSHCore->fork_no_output($user_target, @env_rcp_command);
waitpid($env_rcp_process[0], undef);
#push @commands, \@env_rcp_command;
}
my $tmp_cmd_file;
if ($$options{'execute'})