Skip to main content
Inspiring
Oct 6, 2008 3:07 PM UTC
Question

cfexecute a Perl script.

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
Oct 6, 2008 3:47 PM UTC
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.
Translate
Known Participant
Jan 4, 2020 10:02 PM UTC

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.

Translate
Inspiring
Oct 6, 2008 3:26 PM UTC
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/
Translate