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
> > >
> > >
> > >
> > >
> >
> >
> 
> 
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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