Good information, thanks.  But the core here was I do want a return code
from <cfexecute> which it doesn't appear to do, although a try/catch does
seem to give some useful information.

My work around to all of this has been a series of using <cfexecute> to do a
chmod on the files first to make sure the permissions are what I want, then
calling <cf_local_to_local> by Rizal Firmansyah to do the copy and then
finally <cfexecute> to do a chgrp at the end so that the correct people can
get to the files.

Shawn McKee


-----Original Message-----
From: Larry W. Virden [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 9:35 AM
To: CF-Talk
Subject: Re: Directory copies on UNIX systems


from: Shawn McKee <[EMAIL PROTECTED]>

>If I do this:
>
> <cfexecute name="/bin/cp" arguments="-R -p #dirName1# #dirName2#/fred"
>outputfile="#outName#/cpOut"></cfexecute>
>
>where 'fred' doesn't exist I get this in the output file:
>
>/bin/cp: cannot create directory `/ftp/ahb/ahb/bkm/fred': No such file or
>directory
>
>If it succeeds the file is empty
>
>Neither case is a "single integer."
>
>Documentation says this:
>
>outputFile - Optional. The file to which to direct the output of the
>program. If not specified, the output is displayed on the page from which
it
>was called.
>
>This is all CF5 on RH-Linux
>
>Shawn

Shawn, I don't know how Linux works, but both GNU's cp and Solaris's cp
does this:

$ gcp -R -p /tmp/lwv /tmp/lwv26
$ 
 
In other words, no output is produced.  There is a $? return code that 
is 'returned' - but it's not output to stdout or stderr.

-- 
Support Internet Radio <URL: http://saveinternetradio.org/ >
Larry W. Virden <mailto:[EMAIL PROTECTED]> <URL:
http://www.purl.org/NET/lvirden/>
Even if explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
-><-

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to