Long store short, that is what I am trying to do

Background, I use an app that includes perl, as I go to many places I see it installed all over the place. For my shebang line I can use something like this:

#!/bin/sh eval 'exec `/usr/bin/iwgethome`/iw-perl/bin/iwperl -x -S $0 ${1+"$@"}' +;

(iw-perl is the app's bundled perl)

The issue I have is that there are some embedded XML files with entries like

command="/some/path/to/perl"

and I am trying to put something on a single commandline which could replicate it. Eval is a SH/BASH function and is not picked up.

I thought something like bash `/usr/bin/iwgethome`/iw-perl/bin/iwperl perlfile - which looks promising, but I get an error like this:

iwperl: cannot execute binary file

Which tells me it is picking up the 1st parameter as the script name, but in this case the 1st parameter is perl not the script.

Figure this is a longshot, but hope for some words of wisdom.


In reply to running /bin/sh perl file.pl by aknipp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.