Highlighted

cfexecute a Perl script.

LEGEND ,
Oct 06, 2008

Copy link to clipboard

Copied

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.
TOPICS
Advanced techniques

Views

836

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

cfexecute a Perl script.

LEGEND ,
Oct 06, 2008

Copy link to clipboard

Copied

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.
TOPICS
Advanced techniques

Views

837

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
Oct 06, 2008 0
LEGEND ,
Oct 06, 2008

Copy link to clipboard

Copied

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/

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...
Oct 06, 2008 0
LEGEND ,
Oct 06, 2008

Copy link to clipboard

Copied

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.

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...
Oct 06, 2008 0
New Here ,
Jan 04, 2020

Copy link to clipboard

Copied

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.

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...
Jan 04, 2020 0