Hello,
I try to call "/usr/bin/openssl version" from a Ruby script, but without success. It does work from my shell:
$ openssl version
OpenSSL 0.9.7l 28 Sep 2006
but running this Ruby script:
Code Ruby:puts %x{"/usr/bin/openssl version"}
I get the error "sh: /usr/bin/openssl version: No such file or directory", even if I put "/usr/bin" in $:
Code Ruby:$:.push("/usr/bin/") puts %x{"/usr/bin/openssl version"}
Any clue? Thanks by advance
Florent





Bookmarks