From 86a676d09f5f7c6ccf9559e1261060859fcc2d8f Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 2 Feb 2010 19:47:52 +0000 Subject: [PATCH] add comment to runxcmd about file expansion using glob git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5120 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index dd591d584..5c312778a 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -987,6 +987,13 @@ sub runcmd the entire command string xdsh runs needs to be a single entry in the arg array. + The caller to the runxcmd is responsible for filename expansion, that + would have been done if the command was run on the command line. + For example, the xdcp node1 /tmp/testfile* /tmp command needs to + have the /tmp/testfile* argument expanded before call xdcp with + runxcmd. The easy way to do this is to use the perl glob function. + @files=glob "/tmp/testfile*"; + =cut