Run your application as its own session if it runs as a background job, in a batch session, or in a session bound to a character terminal. To run your application in its own session, use the -c parameter with the ttsession command, as follows:
ttsession -c [ command-to-non-in-batch ]
This command will fork off a shell from which you can run your application.
The -c parameter must be the last option on the command line; any characters placed after the -c parameter on the command line are taken as the command to be executed.