hi i'm trying to execute a ruby script from the shell object by sending it the message "ruby /path/to/script.rb arguments" but i get nothing. the script works fine from the command line, with the exact same arguments. is there an alternative? i'm on osx, latest stable pd extended thank you
On Tue, 29 Jun 2010, Jon wrote:
i'm trying to execute a ruby script from the shell object by sending it the message "ruby /path/to/script.rb arguments" but i get nothing. the script works fine from the command line, with the exact same arguments. is there an alternative? i'm on osx, latest stable pd extended thank you
What do you expect ? Is it supposed to give you some text on its stdout ? Does it work in the case where your programme is instead writing to a file ? Can it be a matter of finding the programme ? What if you specify the complete name of ruby, such as /usr/bin/ruby ? Is the programme's arguments sensitive to the default directory (relative filenames) in a way that can make it fail ? etc...
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
There are four options to try, let us know which works best for you:
flatspace/popen moonlib/popen motex/system ggee/shell
.hc
On Jun 28, 2010, at 6:55 PM, Jon wrote:
hi i'm trying to execute a ruby script from the shell object by sending it the message "ruby /path/to/script.rb arguments" but i get nothing. the script works fine from the command line, with the exact same arguments. is there an alternative? i'm on osx, latest stable pd extended thank you
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"Free software means you control what your computer does. Non-free
software means someone else controls that, and to some extent controls
you." - Richard M. Stallman
2010/6/28 Jon potaxpotax@gmail.com:
i'm trying to execute a ruby script from the shell object by sending it the message "ruby /path/to/script.rb arguments" but i get nothing. the script works fine from the command line, with the exact same arguments. is there an alternative?
And does it work if you put it inside a simple bash script?