From c13356f63c764196e08b363af7a0c3504b8f69b8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 23 Oct 2015 22:26:02 +0100 Subject: fix examples --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b43be49..86a5ef5 100644 --- a/README.md +++ b/README.md @@ -10,20 +10,20 @@ Example usage: ``` # Run command 'hostname' on server foo.example.com -./rubyfy -c 'hostname' <<< foo.example.com +./rubyfy.rb -c 'hostname' <<< foo.example.com # Run command 'id' as root (via sudo) on all servers listed in the list file # Do it on 10 servers in parallel -./rubyfy --parallel 10 --root --command 'id' < serverlist.txt +./rubyfy.rb --parallel 10 --root --command 'id' < serverlist.txt # Run a fancy script in background on 50 servers in parallel -./rubyfy -p 50 -r -b -c '/usr/local/scripts/fancy.zsh' < serverlist.txt +./rubyfy.rb -p 50 -r -b -c '/usr/local/scripts/fancy.zsh' < serverlist.txt # Grep for specific process on both servers and write output to ./out/grep.txt -echo {foo,bar}.example.com | ./rubyfy -p 10 -c 'pgrep -lf httpd' -n grep.txt +echo {foo,bar}.example.com | ./rubyfy.rb -p 10 -c 'pgrep -lf httpd' -n grep.txt # Reboot server only if file /var/run/maintenance.lock does NOT exist! -./rubyfy --root --command reboot --precondition /var/run/maintenance.lock +./rubyfy.rb --root --command reboot --precondition /var/run/maintenance.lock ``` -- cgit v1.2.3