Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: running /bin/sh perl file.pl

by kcott (Canon)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033410]
help
Chatterbox?
[marto]: oddly the last time I was there I saw a zeppelin in flight for the first time
[Corion]: ambrus: I don't know how far the budget estimate has been overrun yet
[Corion]: marto: Heh ;) No, you were likely at Tegel or Schönefeld, the new one ("BER") will be somewhat outside of Berlin ;)
[marto]: Corion Schoenfeld, but my friend has been telling me about this new airport for about 7-8 years now :P
[marto]: I doubt it even exists as a building site :P
[ambrus]: Corion: does building airports "somewhat outside of" a city ever work? cities always grow around the airport quickly, because it's practical to be close to it, and after that, people start to complain that the airplanes land so close to their house and sh
[ambrus]: ould keep down the noise

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2017-02-23 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (346 votes). Check out past polls.