Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created an Automator workflow in Mac OS X 10.5.8. The workflow is supposed to run a Ruby script and then shutdown the computer.

The Ruby script copies files between several computers and then sends an email when complete. When I run the script in Automator all code is executed with out errors, because I get the email and all the files are copied, but the Automator step running the script never exits so the computer never shuts down. I have tested the shutdown step independently and it works fine.

The Ruby script takes around 20 minutes to complete. If I cut the script down so it just sends the email and executes in less then 10 seconds, the Automator workflow executes all the way and the computer shuts down.

enter image description here

Any ideas?

share|improve this question
up vote 0 down vote accepted

Added exit function to the end of the ruby script. Now the shell script step finishes correctly in Automator and then runs the AppleScript to shutdown the computer.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.