I used the Rails runner until now, agree I should probably wrap that in a shell script.