RE: cfexecute problems

2004-11-03 Thread Dave Watts
 I am having trouble running a Visual FoxPro Executable via CFEXECUTE to
 do some DBF maniupations on the Server -- the EXE is loaded as a service
 and then is not released upon execution timeout as specified in the
 CFEXECUTE statement (20 seconds) -- I included reference to an
 outputfile but no output is actually generated by the program so the
 file generated is empty.  

 JasonOU reported to Macromedia that he fixed the problem by running 
 dcomcnfg. He then went to the Default Security tab, clicked on Edit
 Default under Access Permissions, and added the account which the IIS
 service uses to execute anonymously (this is generally
 IUSR_machinename).

 Since I am running XP Home (without IIS), I am using CF's Internal
 equivalent of IIS and am wondering what fix works that may be similar to
 the one suggested by JasonOU to get the EXE released. 

You might be able to fix this using DCOMCNFG. Within that, you can allow
access to the security principle running CF (SYSTEM by default).

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444


~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=35

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183296
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfexecute problems

2003-07-14 Thread fred fred
cfexecute name=c:\tmp\labor.exe 
 arguments=your_file 
 timeOut=10
/cfexecute

Tim Do [EMAIL PROTECTED] wrote:Hi All,

I'm trying to use the cfexecute tag to run an exe file.. but not having any
luck.

Here is what I have:
  
timeout = 5 


I'm getting this error returned (happens no matter how long I set the
timeout to be)
Timeout period expired without completion of
\\dev\wwwroot\InSite\LaborEXE\Labor.exe


So I try this:

timeout = 2 

I get this error:


An exception occurred when invoking an external process. 

The cause of this exception was that: java.io.IOException: CreateProcess:
E:\inetpub\wwwroot\InSite\LaborEXE\Labor.exe error=3. 

Please help!
running win2k/mx

Thanks!




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Cfexecute problems

2003-06-09 Thread cf-talk
I have experienced situations in which a program does not execute.  It was
some time ago so I don't know if any of the updaters might have fixed it but
the program was image ALCHEMY.EXE (handmadesoftware.com) and it worked fine
in CF5... but wouldn't run in CFMX.  I opted to use ImageMagick instead
(imagemagick.org).

-Novak

- Original Message - 
From: Jon Hart [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, June 09, 2003 5:40 PM
Subject: Cfexecute problems


 Has anyone run into issue getting cfexecute to work properly in cfmx?

 Im trying to do some stuff with cvs, but when I execute it, the cvs
 thread never exits.
 Its like its waiting for user input, but if you run cvs on the command
 line it prints out some handy help info and quits.

 This is on a windows xp box, running update 3 of mx.
 Netstat works fine, ive even tried putting the cvs.exe in the windows
 dir with netstat and giving it all the same permissions, but no juice.

 I am aware that there are a lot of potential pitfalls with windows
 permissions and security, but I don't think they are whats wrong in this
 case.

 Jon.

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: cfexecute problems

2001-05-02 Thread Michael Dinowitz

* Team Allaire *
I don't think it's possible. CFEXECUTE does a single command line call. It
doesn't 'hold' the connection open at all. For that you need something like
COM (or the other CFOBJECT techs).


 Anyone know how to use cfexecute with a command line program that requires
 user input after the first line?  That is, how do you tell cfexecute that
 you want to do the first bit, then simulate pressing return, then do the
 next bit, etc

 I've tried passing \n, \r, #chr(10)#, #chr(13) and even actually enclosing
a
 real carriage return between quotes and it won't work.

 Any help would be great.

 TIA,


 Aaron Cooper, BSc
 Application Developer, Freeserve.com Plc
 The Observatory, 36-41 Clerkenwell Close, London EC1R OAU
 T: 0207 553 4992  M: 07799 191 589



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: cfexecute problems

2001-05-02 Thread Bryan LaPlante

If the program you are trying to communicate with was build to support the
COM interface (probably a .dll) then you can use CFOBJECT. Look for the
OleViewer on Microsoft's site it will show you the methods and properties of
the program if you have no 3rd party documentation.

If you are trying to talk to an exe, you might try using the outputfile
property of CFEXECUTE to output the return value of the call to a txt file
and then read it back into a variable on the page with cffile.

Bryan

- Original Message -
From: Michael Dinowitz [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, May 02, 2001 9:35 AM
Subject: Re: cfexecute problems


 * Team Allaire *
 I don't think it's possible. CFEXECUTE does a single command line call. It
 doesn't 'hold' the connection open at all. For that you need something
like
 COM (or the other CFOBJECT techs).


  Anyone know how to use cfexecute with a command line program that
requires
  user input after the first line?  That is, how do you tell cfexecute
that
  you want to do the first bit, then simulate pressing return, then do the
  next bit, etc
 
  I've tried passing \n, \r, #chr(10)#, #chr(13) and even actually
enclosing
 a
  real carriage return between quotes and it won't work.
 
  Any help would be great.
 
  TIA,
 
 
  Aaron Cooper, BSc
  Application Developer, Freeserve.com Plc
  The Observatory, 36-41 Clerkenwell Close, London EC1R OAU
  T: 0207 553 4992  M: 07799 191 589
 
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFEXECUTE Problems

2000-07-13 Thread Dave Watts

 I've attempted testing this on several similar configurations,
 both my development and staging servers and am not getting
 successful results. I've tried including a timeout here as well
 with no luck.

 My development and staging machines are both running 4.5.1 and
 NT 4 SP5 (maybe 4.0 is the problem). If I add an outputfile param
 on the tag, the 'user /add' command produces no result (empty text
 file). If I issue a 'user' command, it produces an enumeration list
 in the file, but also the ambigous 'one or more errors' message. If
 I issue a different command like 'view', it enumerates all the
 machines on the domain and reports 'operation completed successfully'.

This does make it sound like some sort of rights issue to me. I tried
briefly on an NT 4 box, and couldn't get it to work either, but I didn't try
very long.

 Justin MacCarthy also suggested this route but this is
 turning into more complexity than I have time or resources for
 right now. I was also provided a good link to Lewis Sellers
 usermanager suite which appears to contain a bunch of CFX's
 that will do exactly what I need.

I'd guess that Lewis's user manager CFX will do the trick for you, although
I haven't tried it personally. In case it doesn't, there's a COM object from
http://www.softwareartisans.com/ called SA-Admin which worked well for me.

   On a tangent, can anyone recommend an FTP server that would
   integrate well with CF automation? The ultimate goal here is
   to automate the creation of user accounts and access rights.
   Currently, I'm trying to add the user to an NT domain (duh)
   and then I'm assigning server permissions at the file level
   using xcacls.exe (this works just dandy using CFEXECUTE).
 
  I've had few problems using IIS's web server for this.

 Could you elaborate on this a little for me?

Using ADSI, you can script the creation and management of IIS servers,
including FTP servers and virtual web servers. The web-based administration
interface you can install with IIS uses ADSI to do this. Pretty much any
management task can be scripted. If you want to use CF to do this, you can
write Windows Script Component files, then call them using CFOBJECT.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: CFEXECUTE Problems

2000-07-12 Thread Dave Watts

 mm... nope, still not working for me.  In addition to
 your example, I've also tried running it from a cmd.exe
 shell - i.e.:

 cfexecute name="c:\winnt\system32\cmd.exe"
arguments="net user testme testme /add"
 /cfexecute

 ... still no dice.

I couldn't get it to work that way, either.

 Is your CF service running as localsystem?

Yes, it is. I tested this on my development machine, running Win2K and CF
4.5.1. I'm using the standard security configuration (essentially, no
security); this might be your problem, if you've modified your user rights
and security configuration in one way or another.

If you're trying to manipulate users, rights, etc. you might want to take a
look at ADSI, which you can use through COM. CFOBJECT isn't really good at
doing this, but it's pretty easy to write wrapper objects, and call those
objects to do your ADSI tasks. I've used Windows Script Components for this.

 On a tangent, can anyone recommend an FTP server that would
 integrate well with CF automation? The ultimate goal here is
 to automate the creation of user accounts and access rights.
 Currently, I'm trying to add the user to an NT domain (duh)
 and then I'm assigning server permissions at the file level
 using xcacls.exe (this works just dandy using CFEXECUTE).

I've had few problems using IIS's web server for this.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: CFEXECUTE Problems

2000-07-12 Thread Raymond K. Camden


Correct me if I'm wrong, but isn't TIMEOUT=X required? I believe the docs
forget to mention it, but that could be your problem.


  mm... nope, still not working for me.  In addition to
  your example, I've also tried running it from a cmd.exe
  shell - i.e.:
 
  cfexecute name="c:\winnt\system32\cmd.exe"
 arguments="net user testme testme /add"
  /cfexecute
 
  ... still no dice.

 I couldn't get it to work that way, either.

  Is your CF service running as localsystem?


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: CFEXECUTE Problems

2000-07-12 Thread Dave Watts

 Correct me if I'm wrong, but isn't TIMEOUT=X required? I 
 believe the docs forget to mention it, but that could be 
 your problem.

It worked fine without it for me.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: CFEXECUTE Problems

2000-07-12 Thread Ryan Hill

Dave and all,

I've gotten several helpful replies now but I'm still a little worried here.
Its starting to sound like this isn't a very good approach to my goal.  I've
added some comments and thoughts inline below:

  Is your CF service running as localsystem?
 
 Yes, it is. I tested this on my development machine, running 
 Win2K and CF
 4.5.1. I'm using the standard security configuration (essentially, no
 security); this might be your problem, if you've modified 
 your user rights
 and security configuration in one way or another.

I've attempted testing this on several similar configurations, both my
development and staging servers and am not getting successful results.  I've
tried including a timeout here as well with no luck.

My development and staging machines are both running 4.5.1 and NT 4 SP5
(maybe 4.0 is the problem).  If I add an outputfile param on the tag, the
'user /add' command produces no result (empty text file).  If I issue a
'user' command, it produces an enumeration list in the file, but also the
ambigous 'one or more errors' message.  If I issue a different command like
'view', it enumerates all the machines on the domain and reports 'operation
completed successfully'.

 If you're trying to manipulate users, rights, etc. you might 
 want to take a
 look at ADSI, which you can use through COM. CFOBJECT isn't 
 really good at
 doing this, but it's pretty easy to write wrapper objects, 
 and call those
 objects to do your ADSI tasks. I've used Windows Script 
 Components for this.

Justing MacCarthy also suggested this route but this is turning into more
complexity than I have time or resources for right now.  I was also provided
a good link to Lewis Sellers usermanager suite which appears to contain a
bunch of CFX's that will do exactly what I need.
 
  On a tangent, can anyone recommend an FTP server that would
  integrate well with CF automation? The ultimate goal here is
  to automate the creation of user accounts and access rights.
  Currently, I'm trying to add the user to an NT domain (duh)
  and then I'm assigning server permissions at the file level
  using xcacls.exe (this works just dandy using CFEXECUTE).
 
 I've had few problems using IIS's web server for this.

Could you elaborate on this a little for me?

Thanks,
Ryan

Ryan Hill, MCSE
Director of Systems Integration
Market Matrix, Inc. - http://www.marketmatrix.com
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: CFEXECUTE Problems

2000-07-11 Thread Dave Watts

 First time attempting to use this tag, so I would appreciate 
 a little help here. I am attempting to use CFEXECUTE to execute 
 a 'net user /add' command via CF and its silently failing to 
 create the account I specify. The server service is running 
 under the local system account.

You have to call net.exe; this worked for me:

cfexecute name="c:\winnt\system32\net.exe"
   arguments="user testme testme /add"
/cfexecute

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: CFEXECUTE Problems

2000-07-11 Thread Ryan Hill

Thanks for replying Dave,

mm... nope, still not working for me.  In addition to your example, I've
also
tried running it from a cmd.exe shell - i.e.:

cfexecute name="c:\winnt\system32\cmd.exe"
   arguments="net user testme testme /add"
/cfexecute

... still no dice.  Is your CF service running as localsystem?

Curiously, if I attempt the following:

cfexecute name="c:\winnt\system32\net.exe"
   arguments="user" outputfile="foo.txt"
/cfexecute

The output file enumerates the user list but also adds one of NT's widely
loved ambigous errors: "The operation completed with one or more errors."
Of course, it doesn't tell me what those errors are, nor are they logged
anywhere I could find.

If I turn on event log auditing, I can see the SYSTEM logon being granted
access rights to the security subsystem both to add a user and to enumerate
users.  However, despite appearing to execute successfully, the user is not
added to the local account database.

On a tangent, can anyone reccomend an FTP server that would integrate well
with CF automation?  The ultimate goal here is to automate the creation of
user accounts and access rights.  Currently, I'm trying to add the user to
an NT domain (duh) and then I'm assigning server permissions at the file
level using xcacls.exe (this works just dandy using CFEXECUTE).

Thanks,
Ryan

Ryan Hill, MCSE
Director, Systems Integration
Market Matrix, Inc. - http://www.marketmatrix.com 

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 11, 2000 8:37 PM
To: [EMAIL PROTECTED]
Cc: Ryan Hill
Subject: RE: CFEXECUTE Problems


 First time attempting to use this tag, so I would appreciate 
 a little help here. I am attempting to use CFEXECUTE to execute 
 a 'net user /add' command via CF and its silently failing to 
 create the account I specify. The server service is running 
 under the local system account.

You have to call net.exe; this worked for me:

cfexecute name="c:\winnt\system32\net.exe"
   arguments="user testme testme /add"
/cfexecute

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.