From 40c1bc3795f3a7bd8427a33832fbc0c37dbdc341 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 14 May 2010 17:18:42 +0000 Subject: [PATCH] handles arguments on xdsh -e in hierarchy git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xdsh.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/xdsh.pm b/xCAT-server/lib/xcat/plugins/xdsh.pm index 9f32aa22f..b16ec9903 100644 --- a/xCAT-server/lib/xcat/plugins/xdsh.pm +++ b/xCAT-server/lib/xcat/plugins/xdsh.pm @@ -98,7 +98,9 @@ sub preprocess_request } if ($var eq "DSHEXECUTE") # from xdsh -e flag { - $::dshexecute = $value; # Handle hierarchy + $::dshexecutecmd = $value; # Handle hierarchy + my @cmd = split(/ /, $value); # split off args, if any + $::dshexecute = $cmd[0]; # This is the executable file } }