A
Andreas S
I can't any information about this, so I dare myself to post here. I have
shell script I want to call from ruby, say testme.sh, where it contains
echo "It's me"
Calling it with %x{testme.sh} gives me the expected result, but calling it
with backtick `testme.sh` results in 'command not found: testme.sh'.
The backtick works if I put double quotes around it, ie `"testme.sh"`, or if
I use shebang in the shell script
#!/bin/sh
echo "It's me"
Why is this? By the way `testme.sh` works in perl which made me expect it to
work in ruby too (I know, I know, I shouldn't expect that).
Thanks in advance
-andre
_________________________________________________________________
All-in-one security and maintenance for your PC. Get a free 90-day trial!
http://clk.atdmt.com/MSN/go/msnnkwl...://www.windowsonecare.com/?sc_cid=msn_hotmail
shell script I want to call from ruby, say testme.sh, where it contains
echo "It's me"
Calling it with %x{testme.sh} gives me the expected result, but calling it
with backtick `testme.sh` results in 'command not found: testme.sh'.
The backtick works if I put double quotes around it, ie `"testme.sh"`, or if
I use shebang in the shell script
#!/bin/sh
echo "It's me"
Why is this? By the way `testme.sh` works in perl which made me expect it to
work in ruby too (I know, I know, I shouldn't expect that).
Thanks in advance
-andre
_________________________________________________________________
All-in-one security and maintenance for your PC. Get a free 90-day trial!
http://clk.atdmt.com/MSN/go/msnnkwl...://www.windowsonecare.com/?sc_cid=msn_hotmail