Tagged Questions
10
votes
2answers
298 views
Shebang line with `#!/usr/bin/env command --argument` fails on Linux
I've got a simple script:
#!/usr/bin/env ruby --verbose
# script.rb
puts "hi"
On my OSX box, it runs fine:
osx% ./script.rb
hi
However, on my linux box, it throws an error
linux% ./script.rb
...
0
votes
1answer
386 views
/bin/sh: ./check-dependencies.pl: not found — but check-dependencies.pl exists!
I'm trying to build Moses, but when I run make I get the following output:
minakshi@minakshi-Vostro-3500:~/Desktop/working-dir/moses/scripts$ make release
# Compile the parts
make all
make[1]: ...
2
votes
0answers
209 views
Can capabilities be used in scripts without setcap'ing the interpreter binary?
Right now I'm using cap_net_bind_service MY_USERNAME in /etc/security/capability.conf.
Now I just need to set cap_net_bind_service+i on the interpreter of my favouite scripting language to be able to ...
5
votes
3answers
2k views
The way to use `/usr/bin/env sed -f ` in shebang?
Typing /usr/bin/env sed -f in terminal works.
But if use it as a shebang,
#!/usr/bin/env sed -f
s/a/b/
The script will be fail to execute:
/usr/bin/env: sed -f: No such file or directory
I ...