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
 

-----Original Message-----
From: Matt Liotta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 6:27 PM
To: CF-Talk
Subject: RE: Directory copies on UNIX systems


You don't have to parse the file. All the file will contain is a single
integer. What's so hard about that?

-Matt
 

> -----Original Message-----
> From: Shawn McKee [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 4:22 PM
> To: CF-Talk
> Subject: RE: Directory copies on UNIX systems
> 
> As I said.
> 
> > > -----Original Message-----
> > > From: Shawn McKee [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 20, 2002 3:44 PM
> > > To: CF-Talk
> > > Subject: RE: Directory copies on UNIX systems
> > >
> > > That will work but I kind of like getting some sort of success or
> > failure
> > > back without having to dump things to a log file that I then have
to
> > parse
> > > through.
> > >
> > > Shawn
> 
> 
> -----Original Message-----
> From: Matt Liotta [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 6:15 PM
> To: CF-Talk
> Subject: RE: Directory copies on UNIX systems
> 
> 
> You output what cp returns to a file and then read the file.
> 
> -Matt
> 
> 
> > -----Original Message-----
> > From: Shawn McKee [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 20, 2002 3:57 PM
> > To: CF-Talk
> > Subject: RE: Directory copies on UNIX systems
> >
> > I know cp does but does cfexecute translate that back to the calling
> > program.  The docs don't indicate that it does.
> >
> > Exception
> > cfexecute throws the following exceptions:
> >
> > If the application name is not found: Application File Not Found
> exception
> > If the output file cannot be opened: Output File Cannot exception
> > If the effective user of the ColdFusion executing thread does not
have
> > permissions to execute the process, a security exception is thrown.
> > The time out values must be between 0 and the longest time out value
> > supported by the operating system
> >
> > Shawn
> >
> > -----Original Message-----
> > From: Matt Liotta [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 20, 2002 5:50 PM
> > To: CF-Talk
> > Subject: RE: Directory copies on UNIX systems
> >
> >
> > cp returns a success/failure code.
> >
> > -Matt
> >
> >
> > > -----Original Message-----
> > > From: Shawn McKee [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 20, 2002 3:44 PM
> > > To: CF-Talk
> > > Subject: RE: Directory copies on UNIX systems
> > >
> > > That will work but I kind of like getting some sort of success or
> > failure
> > > back without having to dump things to a log file that I then have
to
> > parse
> > > through.
> > >
> > > Shawn
> > >
> > >
> > > -----Original Message-----
> > > From: Matt Liotta [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 20, 2002 5:12 PM
> > > To: CF-Talk
> > > Subject: RE: Directory copies on UNIX systems
> > >
> > >
> > > Use <cfexecute> and call the cp program.
> > >
> > > -Matt
> > >
> > >
> > > > -----Original Message-----
> > > > From: Shawn McKee [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, June 20, 2002 11:34 AM
> > > > To: CF-Talk
> > > > Subject: Directory copies on UNIX systems
> > > >
> > > > I need to be able to copy complete directory structures from one
> > > location
> > > > to
> > > > another on various UNIX systems.  I have gotten close using a
> > variety
> > > of
> > > > custom tags I have found but the underlying problem is that I
> really
> > > need
> > > > to
> > > > maintain the group, and preferably the owner.  I am trying to
> avoid
> > > > creating
> > > > CFX tag simply because of lack of resources.
> > > >
> > > > Suggestions?
> > > >
> > > > Shawn McKee
> > > > Manager, Web Development
> > > > NewsStand, Inc.
> > > > 8620 Burnet Rd., Suite 100
> > > > Austin, TX 78757 USA
> > > > 512-334-5100
> > > > Read newspapers and magazines from around the world in a whole
new
> > > way.
> > > > NewsStand delivers them to your PC without paper and without
> delay!
> > > > Try: http://www.newsstand.com?NSEMC=EMNSI000001
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> 
> 

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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