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:
>Cliff,
>
>Thanks for your advice,  I tried the one with space and the one
>without in between the path  and the device but the printer just
>moved up one line.  I also tried increasing the timeout to 5. Didn't
>work also.  What could possibly be wrong with cfexecute trying to
>run perl scripts.   I tried using bash (echo -e print_form.pl) in
>the name attribute and it works.  It prints the whole print_form.pl
>code.  I'm using cfmx 6.1
>
>I guess I just have to let perl talk directly to my serial printer.
>
>I just can't believe it doesn't work.
>
>Thanks again CLiff!
>
>>John,
>>
>>
>>I would try replacing what you have in the "name" attribute for
>CFEXECUTE
>>with this:
>>
>>"/opt/coldfusionmx/wwwroot/DMS/receipts/print_form.pl > /dev/ttyS0"
>>
>>or
>>
>>"/opt/coldfusionmx/wwwroot/DMS/receipts/print_form.pl>/dev/ttyS0"
>>
>>and then leave the "outputfile" attribute empty.  CFEXECUTE's outputfile
>>attribute might not behave in the same way as the command you're
>issuing
>>in the command shell.
>>
>>If that doesn't work another option might be to use the Perl script
>itself
>>to talk directly to /dev/ttys0 instead of capturing the output
>of the
>>.pl file and writing it to the device.
>>
>>
>>-Cliff
>>
>>
>>
>>On Wed, 04 Aug 2004 09:18:25 -0700 John Puzon <[EMAIL PROTECTED]>
>wrote:
>>
>>>10.
>>>
>>>Thanks in advance...
>>>
>>>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to