Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Coldfusion 10: execute as command line

Community Beginner ,
Sep 04, 2014 Sep 04, 2014

Copy link to clipboard

Copied

Using CF10 on a unix system.  Attempting to use cfexecute on perl and batch files do not work but they run fine when executed directly from command line.  The perl and bat file permissions are set so anyone can execute them.  Does anyone know if I make coldfusion execute the perl or bat file as if it was running as a command line?  May need to designate specific user the execute them as.

<cfexecute name="#EDRSDIR#/uploadconvertwrapper.pl" arguments="#filedirectory# #finalfilename# #dcnflag# #splflag# outputFile="/dev/null" timeOut="0" />

<cfexecute name="#EDRSDIR#/uploadconvert.bat" argumensts="#filedirectory# #finalfilename# #dcnflag# #splflag# outputFile="/dev/null" timeout="0" />

Views

554

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Sep 09, 2014 Sep 09, 2014
The "argumensts" was a typo just in my forum post.I did finally find the answer.  The coldfusion was running under a different account than what I was using for command line testing.  Once I tried the commmand line with the coldfusion account, I found some hidden directories that required permission updates.  Thanks for the input, BKBK.

Likes

Translate

Translate
Adobe Community Professional ,
Sep 06, 2014 Sep 06, 2014

Copy link to clipboard

Copied

What about:

correcting the spelling of 'arguments';

dropping the .pl and .bat extensions;

giving the timeout a value greater than 0;

adding an error variable which you can output for debugging.

<cfexecute name="#EDRSDIR#/uploadconvertwrapper" arguments="#filedirectory# #finalfilename# #dcnflag# #splflag# errorVariable="errorOutput" timeout="10" />

<cfexecute name="#EDRSDIR#/uploadconvert" argumensts="#filedirectory# #finalfilename# #dcnflag# #splflag# errorVariable="errorOutput" timeout="10" />

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 09, 2014 Sep 09, 2014

Copy link to clipboard

Copied

The "argumensts" was a typo just in my forum post.

I did finally find the answer.  The coldfusion was running under a different account than what I was using for command line testing.  Once I tried the commmand line with the coldfusion account, I found some hidden directories that required permission updates.  Thanks for the input, BKBK.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 10, 2014 Sep 10, 2014

Copy link to clipboard

Copied

LATEST

Thanks for sharing that. Could you please mark it as the correct answer? It will help someone else.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines