I was suggesting using an array of arguments because there is a remote possibility 
that CF did not parse the argument string properly.  As I mentioned before, CF parses 
the string into tokens using spaces and quotes as delimiters.  I believe there is an 
issue in CFMX right now where a quoted substring, for example, inside an argument 
string isn't being parsed correctly, and the result is that the executable doesn't 
receive the args as they were intended.  You weren't using quoted substrings at first, 
so that example may not apply, but the point is that if the executable was complaining 
about syntax.  The fact that the executable complained  means that a) you were in fact 
running it so there's no permissions issues with calling cfexecute in the first place, 
and b) the executable didn't understand the sequence of arguments.  Passing the args 
as an array provides more control over how the executable receives them because you 
eliminate the algorithm that cf uses to parse the string.  Creating a batch file to 
run probably works based on the same principle... the arguments are hard coded into a 
batch file and cf just executes the bat file without passing any args to the bat, and 
this again circumvents  having cf parse an argument string into tokens.

I'll try to find an example of the known issue I was thinking of and post it here 
later...



-----Original Message-----
From: Jillian Carroll [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2003 7:28 PM
To: CF-Talk
Subject: RE: cfexecute erroring


I've fixed my problem... but I'm not sure why I had to do this workaround.

I created a batch file, and I am using cfexecute to run the batch file.

--
Jillian

> -----Original Message-----
> From: Jillian Carroll [mailto:[EMAIL PROTECTED]
> Sent: August 22, 2003 4:42 PM
> To: CF-Talk
> Subject: RE: cfexecute erroring
> 
> 
> Jochem,
> 
> No error message is generated, really.  What I get is a dump
> of the same stuff that appears if you go to the command line 
> and just type htpasswd.exe:
> 
> Usage: htpasswd [-cmdps] passwordfile username htpasswd
> -b[cmdps] passwordfile username password htpasswd -n[mdps] 
> username htpasswd -nb[mdps] username password -c Create a new 
> file. -n Don't update file; display results on stdout. -m 
> Force MD5 encryption of the password (default). -d Force 
> CRYPT encryption of the password. -p Do not encrypt the 
> password (plaintext). -s Force SHA encryption of the 
> password. -b Use the password from the command line rather 
> than prompting for it. On Windows, TPF and NetWare systems 
> the '-m' flag is used by default. On all other systems, the 
> '-p' flag will probably not work. 
> 
> The CF Application Server is set to Log on as 'Local System Account'.
> 
> --
> Jillian
> 
> > -----Original Message-----
> > From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
> > Sent: August 22, 2003 3:22 PM
> > To: CF-Talk
> > Subject: Re: cfexecute erroring
> > 
> > 
> > Jillian Carroll wrote:
> > > 
> > >      <cfexecute 
> > >       name="c:\Program Files\Apache
> Group\Apache\bin\htpasswd.exe"
> > >       arguments="-c -b ""c:\Program Files\Apache 
> > > Group\Apache\htdocs\epi2\docs\test\.htpasswd"" test test"
> > >       timeout="5" />
> > > 
> > > This doesn't work either.
> > 
> > What is the error message?
> > As which user is CF running?
> > 
> > Jochem
> > 
> > 
> > 
> > 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

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

Reply via email to