A simple way I use to get notified that processing had finished was to add a "beep" to the end of the program (I was usually in the other room watching TV, so it worked for me). Just bear in mind that the beep will either mean your code has finished =) or your code stopped with an error =(.
At the command line, type:
If you do not hear a sound, type:
Then test to see if beep works by typing "beep" one more time. If that doesn't work, then make sure your speakers are on loud enough that you can hear it.