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'm using Adobe Media Encoder CS6 (on Mac OS X Mountain Lion) to do a big encoding job, which will take about 6 hours.

I need to run a terminal command after my encoding is done. (The command is to upload the encoded files to a remote server.)

Is there any way I can trigger this command automatically when the encoding queue completes?

share|improve this question
up vote 4 down vote accepted

There seem to be two parts to the question:

  1. Is it possible (to launch a terminal command after encoding is done)?
  2. How to do it?

  1. Yes it is, via a script that would simulate "watch folder" behaviour:

    • watch for files in a specified folder
    • once a file is there, wait for it to becomes available (if it isn't outright): not being used by another process
    • once it's available, run a specified command (upload, etc.)
    • delete or move the file when done - otherwise the script will attempt to repeat the process

AME would have to be set to encode files into that "watched" folder, and the script running in infinite loop would pick it up from there.

  1. Not sure if it can be done in BASH; certainly doable in perl.
share|improve this answer
Thank you 50-3 for the edit: part 2 of the answer is numbered "1" rather than "2" - any way to change that? – kindzmarauli Apr 3 '14 at 9:20

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.