A question about terminal

hi, I sealed a linux app in a pc as an embeded device..
I added several users in my linux system, of coz i am the root user...well, after i saled my products to customers, i want my products run like a embeded devices when they connect the system with terminals... i got a way out.. I want to bind the managing app to a user, that is : when some user connect to the system, a certain app automatically opened, when the app closed, the terminal quits....
however, this is just a way, I dunno how to implement it programmally
can you gurus give me any suggestion..
all appreciated...thanx:b:

There is typically a "at login" script which is executed only by a login shell.

Bourne Shell
~/.profile

Bash Shell
~/.bash_profile

Bourne shell is known as BASH.

That is not correct. Bash is the acronym for the Bo(u)rne again shell, a descendant of the original Bourne Shell (sh) and the Korn Shell (ksh), with a few features borrowed from the C Shell (csh).

Use the exec command to start the executable in your .bashrc (bash) or .profile (ksh).