php script to automate an end-to-end run of the provided ruby script