From 8d6ca24d40e8c1a67a589b2b8edcb7585cbf741e Mon Sep 17 00:00:00 2001 From: jjhua Date: Fri, 18 Jan 2013 03:37:00 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/DSHCLI.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/DSHCLI.pm b/perl-xCAT/xCAT/DSHCLI.pm index 47a150ff7..0ab10d35f 100644 --- a/perl-xCAT/xCAT/DSHCLI.pm +++ b/perl-xCAT/xCAT/DSHCLI.pm @@ -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'})