Skip to main content
Participant
June 21, 2006
Question

CF7 WIN2003 - CFEXCUTE ERROR=123

  • June 21, 2006
  • 1 reply
  • 741 views
Since the upgrade from CF6 to CF7 cfexecute no longer works

here are my errors:
An exception occurred when invoking an external process.
The cause of this exception was that: java.io.IOException: CreateProcess: "G:\sites\nosite\alarm\winscp3.com /console /script=G:/sites/nosite/alarm/test.txt /ini=G:/sites/nosite/alarm/WinSCP3.ini" error=123.

An exception occurred when invoking an external process.
The cause of this exception was that: java.io.IOException: CreateProcess: "G:\perl\bin\perl.exe G:\sites\nosite\alarm\alrm.pl" error=123


--- The code ----

<cfexecute name="G:\sites\nosite\alarm\winscp3.com /console /script=G:/sites/nosite/alarm/test.txt /ini=G:/sites/nosite/alarm/WinSCP3.ini" outputfile="G:\sites\nosite\alarm\Error.txt" timeout="1200"></cfexecute>

<cfcatch type="any">
<cfoutput><b>#CFCATCH.Message#<br>#CFCATCH.Detail#</b></cfoutput>
</cfcatch>
</cftry>

<cfflush>
<cftry>
<cfexecute name="G:\perl\bin\perl.exe G:\sites\nosite\alarm\alrm.pl" timeout="1200"></cfexecute>
Executed fixalarm:<cfoutput>#FixDate#<br> G:\sites\nosite\alarm\alrm.pl</cfoutput>

<cfcatch type="any">
<cfoutput><b>#CFCATCH.Message#<br>#CFCATCH.Detail#</b></cfoutput>

</cfcatch>
</cftry>


any info would be great

thanks

todd
    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    June 22, 2006
    name="G:\sites\nosite\alarm\winscp3.com /console /script=G:/sites/nosite/alarm/test.txt /ini=G:/sites/nosite/alarm/WinSCP3.ini"
    name="G:\perl\bin\perl.exe G:\sites\nosite\alarm\alrm.pl"

    I don't think those are proper values for the name-attribute. The value should be just the path of the application you wish to execute, for example, name="G:\perl\bin\perl.exe". You should use the arguments-attribute to pass command-line parameters to the executed application.

    t0ad9Author
    Participant
    June 22, 2006
    okay, this code worked fine in MX6.1 - but to work in MX7 I did the following change..

    name="G:\sites\nosite\alarm\winscp3.com" arguments="/console /script=G:/sites/nosite/alarm/test.txt /ini=G:/sites/nosite/alarm/WinSCP3.ini"
    name="G:\perl\bin\perl.exe" arguments="G:\sites\nosite\alarm\alrm.pl"

    not too bad - smooth transition so far..