• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfexecute a Perl script.

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

1.0K

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
community guidelines
LEGEND ,
Oct 06, 2008 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/

Votes

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

Votes

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
community guidelines
New Here ,
Jan 04, 2020 Jan 04, 2020

Copy link to clipboard

Copied

LATEST

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.

Votes

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
community guidelines
Resources
Documentation