making the application session independent

Hi all,

I am actually new to Unix programming and this is my first question to this forum.

I have an application and i want it to run independent of the command shell.

For example, i run the application from a telnet session. But when i close my session, application is terminated. I just want it not to terminate on session termination..

Thanks,

nohup the application and run it in the background:

# nohup /path/to/application &

Alternatively place the above command in a script and execute that script, very simple script (for bourne & bash shell) would look like:

#! /bin/sh

PATH=$PATH

nohup /path/to/application &

I have used nohup with great success. Another way to do it is to use `screen` that allows you to run an application and then disconnect the virtual screen and come back to it at a later time as if you had never disconnected.

screen is handy when you want to run an interactive program and then exit the telnet session and come back to it later.

In fact, right now screen is running the Unreal Tournament 2003 Dedicated Server on my FreeBSD box at the house. screen works like a champ.