Highlighted

Coldfusion 10: execute as command line

Community Beginner ,
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" />

Correct answer by charedrive | Community Beginner

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.

Views

502

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

Coldfusion 10: execute as command line

Community Beginner ,
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" />

Correct answer by charedrive | Community Beginner

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.

Views

503

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
Sep 04, 2014 0
Adobe Community Professional ,
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
Reply
Loading...
Sep 06, 2014 0
Community Beginner ,
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
Reply
Loading...
Sep 09, 2014 0
BKBK LATEST
Adobe Community Professional ,
Sep 10, 2014

Copy link to clipboard

Copied

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
Reply
Loading...
Sep 10, 2014 0