Pullsh is a project mainly written in ..., it's free.
Simple script for OS X that can run at start up and every hour to pull a secondary shell script from a remote host and execute it.
pullsh expects that a host be configured to provide a shell script to pull and execute; the following is an example setup in Rails:
app/controllers/pullsh_controller.rb
class PullshController < ApplicationController
def script
response.headers['X-Execute'] = 'yes'
render :layout => false
end
end
app/views/pullsh/script.erb
#!/bin/bash
OUTPUT="/tmp/pullsh.test"
echo `date` >> ${OUTPUT}
echo "Hello world from `whoami`." >> ${OUTPUT}
echo >> ${OUTPUT}