Quantcast
Viewing latest article 7
Browse Latest Browse All 8

rvm tip: running a script with sudo priviledges

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 latest article 7
Browse Latest Browse All 8

Trending Articles