Quantcast
Channel: Debug Area » ruby
Viewing all articles
Browse latest Browse all 8

rvm tip: running a script with sudo priviledges

$
0
0

Have you ever needed to run a script with root priviledges? Don’t try to do this:

sudo ruby some_script.rb

As this will not use the same ruby binary as the one in your current environment. Instead, use rvmsudo:

rvmsudo ruby some_script.rb

This will run your script as root, in the current environment.


Viewing all articles
Browse latest Browse all 8

Trending Articles