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 fileWhich 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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |