Run the application from the .profile
Then at the end of the .profile put in the logout command.
This would make your .profile look something like this:
Don't put the '#!/bin/sh' at the beginining of your .profile. :)
# Some default settings
# ...
# Some application settings
# ...
# Run the app
sx1
logout
# end of .profile
Hope this helps.
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.
>
> ____________________________________________________________________
> Get your own FREE, personal Netscape WebMail account today at
>http://webmail.netscape.com.
>
> --
> To unsubscribe:
> mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null