At the end of ~/.bash_profile put:

appname parameters
logout

When the user logs in bash will do everything in ~/.bash_profile, so if
at the end it says "logout", it will.

Carlos Saldarriaga wrote:
> Hi,
> I am new to Linux so this may be a simple matter to solve.  I am running an
> application on a Red Hat 6.1 server, which Win 95 users access via a terminal
> emulator (TTWin Lite).  I don't want users to have command line access, so the
> emulator connects, logs, and runs a sript upon startup.  The problem is after
> the user quits the application he(she) ends up at the command line.  I tried
> modifing the script to log the user out after the application ends with the
> following echo, but it only outputs "logout" without actually loging the user
> out.
> #!/bin/sh
> #This is the application
> sx1
> echo -e 'logout /r'
> 
> Any suggestions.
> Thanks.

-- 
Ivan Jager

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to