Skip to main content
Inspiring
October 6, 2008
Question

cfexecute a Perl script.

  • October 6, 2008
  • 2 replies
  • 1058 views
What would I be looking at to run a Perl script at
d:/path/to/my/perl/loader.pl %year% with a <cfexecute...> tag?

I've tried to do it directly:
<cfexecute
name="d:\path\to\my\perl\loader.pl"
arguments="#year#"
variable="goodbar"
errorvariable="foobar"/>

I've tried to do it through cmd.exe:
<cfexecute
name="c:\windows\system32\cmd.exe"
arguments="d:\path\to\my\perl\loader.pl #year#"
variable="goodbar"
errorvariable="foobar"/>

I've tried calling perl.exe:
<cfexecute
name="e:\Perl\bin\perl.exe"
arguments="d:\path\to\my\perl\loader.pl"
variable="goodbar"
errorvariable="foobar"/>

I am not having much luck with this. The weird thing is that I am not
getting any results OR errors. Just nothing.

This is a Windows 2003/CF 8.0.1 server.
This topic has been closed for replies.

2 replies

Inspiring
October 6, 2008
Azadi wrote:
> see if this may be of help in your case:
> http://www.indigostar.com/perl2exe.htm
>
> otherwise, isn;t there a perl.exe in a win installation?
>

I'll take a look at that if I get desperate enough. But yes there is a
perl.exe on my windows installation. I can easily run the script from
the command line. I am trying to run it from ColdFusion since I have
added a process that runs before the Perl script and I just want to fire
off the Perl code when the ColdFusion code is completed.
Known Participant
January 4, 2020

Hi,

The perl script runs fine from the command line but when I execute the same perl script using the coldfusion cfexecute it fails to run.

 

It cannot find the methods/functions used in the perl script like SelectAllEditableRanges, Bookmarks, InsertAfter. The script fails whereever this functions are called in the perl script.

 

How do I run the perl script using cfexecute.

 

Thanks.

Inspiring
October 6, 2008
see if this may be of help in your case:
http://www.indigostar.com/perl2exe.htm

otherwise, isn;t there a perl.exe in a win installation?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/