Skip to content
krimdomu edited this page Jan 24, 2011 · 1 revision

To execute a command transparent local or remote you can require the (R)?ex Module Rex::Commands::Run.

use Rex::Commands::Run;

user "myuser";
password "mypass";

desc "Show me the uptime";
task "uptime", "server1", "server2", sub {
   run "uptime";
};
Clone this wiki locally