-
August 23rd, 2016, 08:51 PM #1
Problem running external command when XML file is written (manual pahe 89)
Hi Chris,
I try to execute a perl script as external command when the XML file for the printout is written.
I added 2 lines to the registry as described on page 89 of the manual.
However, my command to execute is a perl script genjbxml.pl and not an .exe
The mechanism per se seems to work and I get an error message:
"Error trying to run command
ENOEXEC: Specified file is not executable or has invalid executable file-format"
Then it lists the command, followed by the list of arguments.
What I noticed is, that those lists contain \\ as I had entered into the registry. Should those be resolved into one \ for execution.
I can doubleclick on the genjbxml.pl in the directory and then it executes properly. I.e. the .pl file extension is associated with the perl.exe. On this level, perl execution is OK.
Please help....
Thanks
Peter
-
August 24th, 2016, 12:01 PM #2
You need to add the pathname of the Perl executable to the start of the command line e.g.
C:\Perl64\bin\perl.exe C:\scripts\myperlscript.pl
If the pathnames contain spaces they need to be enclosed in double quotes.
« Previous Thread | Next Thread »
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules