Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: running /bin/sh perl file.pl

by kcott (Abbot)
on May 14, 2013 at 05:05 UTC ( #1033410=note: print w/ replies, xml ) Need Help??


in reply to running /bin/sh perl file.pl

G'day aknipp,

"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."

Actually, that tells me that perlfile is a binary file which iwperl cannot execute. (What happened to file.pl?)

I don't have any problem doing (similar to) what you have there if I specify a script:

$ cat file.pl print "Hello, world!\n"; $ which perl /Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/bin/perl $ `echo $HOME`/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/bin/perl +file.pl Hello, world!

-- Ken


Comment on Re: running /bin/sh perl file.pl
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033410]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-11-29 05:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (203 votes), past polls