help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: copy with spaces...


From: Bill.Hall
Subject: RE: copy with spaces...
Date: Tue, 4 May 2004 16:45:12 -0700

I don't think you want to put quotes around the entire path just the part with 
spaces:

not 
dest="/home/testdest/dir name" or "dest=/home/testdest/dir name/"

but try

dest=/home/testdest/"dir name"

variables get treated as literal strings (in most languages)

try just using the /dir1/dir2/"dir 3"

Bill


-----Original Message-----
From: help-cfengine-bounces+bill.hall=nokia.com@gnu.org
[mailto:help-cfengine-bounces+bill.hall=nokia.com@gnu.org]On Behalf Of
ext Steve Wray
Sent: Tuesday, May 04, 2004 3:10 PM
To: help-cfengine@gnu.org
Subject: copy with spaces...


I am having some trouble with copy commands like this;

copy:
        /home/test/dirname/ dest="/home/testdest/dir name" recurse=inf

it doesn't like the space, not one bit;
<error message>
cf:cfengine::/var/lib/cfengine2/inputs/cfagent.conf:63: Image 
"/home/testdest/dir needs an absolute path
name
cf:cfengine::/var/lib/cfengine2/inputs/cfagent.conf:65: Image name" needs an 
absolute pathname
cfengine:roe252-135:/var/lib/cfengine2/inputs/cfagent.conf:Execution terminated 
after parsing due to errors in
 program
</error message>

I've tried various quoting;
dest="/home/testdest/dir\ name/"
"dest=/home/testdest/dir name/"

I've tried with and without the trailing / on the destination.

nothing works.

is cfengine 'copy' capable of copyihg to destination directories with spaces in 
the name?

I've verified that its possible to create directories with spaces in the names 
using;

directories:
        "/home/testdest/dir name"


Thanks!


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://mail.gnu.org/mailman/listinfo/help-cfengine




reply via email to

[Prev in Thread] Current Thread [Next in Thread]