Reputation: 2517
My OS is Win7
I have a python file(xxx.py), and I need execute it on ruby
my ruby code:
system("xxx.py -yyy -zzz");
and run it no result, but it can run on cmd(xxx.py -yyy -zzz)
and ruby can run system("java -h")
; or system("python -h")
; success.
What's problem with me???
Upvotes: 4
Views: 882
Reputation: 34698
Just to fill out Dogberts answer in full
Using system("python xxx.py -yyy -zzz")
should prrovide you with what you want. This is because your python script is probably not +777 or is missing its shebang line.
Upvotes: 4