How to Run Application after Logoff

One word: SCREEN

Screen is a great program for running programs in the background.

First go ahead and get it (sudo apt-get install screen)

Open terminal, type screen, then enter twice.

It will open what looks like a blank bash session. From their run your application.

Then when it is all done, on your keyboard hit Ctrl-A-D to "disconnect" from the screen session. Your application will continue to run in the background. You can then login from SSH or a local session, type screen -r to "reattach", and you are back at the SCREEN prompt. Rinse and repeat. You can type exit in the bash prompt to exit the screen session.

Source: http://ubuntuforums.org/showthread.php?t=1979687