A daemon that executes commands given to it.
- executer gem: gem install executer
You'll need to set up the executer.yml to point to the redis server executer will use. Example:
$ cat config/executer.yml redis: localhost:6379
To start the daemon:
executer config/executer.yml Starting executer server (redis @ localhost:6379)...
To use the client and push commands to the daemon:
$ irb > require 'executer' > Executer::Client.new('localhost:6379').run :cmd => 'uname >> /tmp/uname.txt', :id => 1
To verify that the command got executed:
$ cat /tmp/uname.txt Darwin