Make sure that the perl script has execution permissions by coldfusion
(ie nobody or apache however you set it up). Make sure you're checking
the coldfusion logs as well in /opt/coldfusion/logs

Thanks,

Derrick

On Aug 5, 2004, at 10:02 AM, John Puzon wrote:

> Cliff,
>
>  I really hope there is some way to do it.��I tried executing it in my
> browser.... using the codes below:
>
>  <cfoutput>Test print</cfoutput><br>
>  <cfexecute name =
> "/opt/coldfusionmx/wwwroot/DMS/receipts/print_form.pl"
> outputfile="/dev/ttyS0" timeout = "1">
>  </cfexecute>
>  <br>
>  <cfoutput>Test print</cfoutput>
>
>  I tried every possible combinations. No errors.��Nothing in the
> browser. The printer just still won't budge.��
>
>  I also tried the directing the ouput to a file.��Nothing was written.
>
>  <cfexecute name =
> "/opt/coldfusionmx/wwwroot/DMS/receipts/print_form.pl"
>  ���outputfile="/opt/coldfusionmx/wwwroot/DMS/receipts/repository"
>  ���timeout = "1">
>  </cfexecute>
>
>  Only cat works.
>
>  This one:
>
>  <cfexecute name = "cat
> /opt/coldfusionmx/wwwroot/DMS/receipts/print_form.pl"
>  ���outputfile="/opt/coldfusionmx/wwwroot/DMS/receipts/repository"
>  ���timeout = "1">
>  </cfexecute>
>
>  or this one:
>
>  <cfexecute name = "cat
> /opt/coldfusionmx/wwwroot/DMS/receipts/print_form.pl"
>  ���outputfile="/dev/ttyS0"
>  ���timeout = "1">
>  </cfexecute>
>
>  No, i don't have any includes.��Just plain shell processing
> translated into cfexecute in coldfusion.��Why can't perl work.
>
>  I just don' understand. :(
>
>  -John
>
>  >John,
>  >
>  >
>  >It's possible that the script is erroring out part way through
> because
>  >of the way that CFEXECUTE is invoking it.��Are you using any includes
>  >that might break if the "working directory" or calling path was
> different
>  >from how you run it in the shell?��Have you tried just running the
> script
>  >with CFEXECUTE without writing to an outputfile or to the device to
> see
>  >what output it actually generates?
>  >
>  >I've run basic Perl scripts with CFEXECUTE before and didn't have too
>  >many problems getting them to work.��There ought to be some way to do
>  >it.
>  >
>  >
>  >-Cliff
>  >
>  >
>  >
>  >On Wed, 04 Aug 2004 20:36:37 -0700 John Puzon <[EMAIL PROTECTED]>
> wrote:
>  >>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to