install rvm in one example line:
user$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Now let's say I have ruby scripts like http://blah.com/helloworld.rb
puts "what ur name?" name = gets.chomp puts "hello world from web, #{name}"
I would like to do this in my shell without creating a temporary file on one line or even a better command.
wget http://blah.com/helloworld.rb; ruby helloworld.rb; rm helloworld.rb
I tried this, but the user's invitation will be ignored due to an earlier channel.
curl -s http://blah.com/helloworld.rb | ruby
What is the correct way to execute a remote ruby script? Thanks!
source share