in reply to Backgrounding a Program

As c-era and broquaint say, the key is fork. This will make a "clone" of your program that is not attached to the terminal, and thus, the main program can exit and leave you with the shell prompt.

This is all fine and well, but make sure you are aware of some key issues: Just food for thought.