Results 1 to 2 of 2

Thread: Problem running external command when XML file is written (manual pahe 89)

  • Thread Tools
    • Show Printable Version
    • Subscribe to this Thread…
  • Display
    • Switch to Hybrid Mode
    • Switch to Threaded Mode
  1. #1
    puhl
    puhl is offlineJunior Member
    Join Date
    Jan 2016
    Posts
    24

    Default 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
    Reply With Quote Reply With Quote

  2. #2
    Chris Breeze is offlineAdministrator
    Join Date
    Jan 2005
    Posts
    6,754

    Default

    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.
    Reply With Quote Reply With Quote

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •