> 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 th
> e
> 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'

Apart from others' suggestions, you could consider:
kill -KILL $$
and you can also make the script (or maybe the application itself) the 
users' shell.

Note that if you make the application the users' shell, then the standard 
shell initialisation isn't done. You may also find this is so if you make 
the script the users' shell, but then if you start it
#!/bin/bash -login
or maybe
#!/bin/bash --login -i
you will overcome that, but note too that part of the initialisation (on 
RHL) is to run a couple of user scripts:
~/.bash_profile
~/.bashrc

and that there are other names tried if these do not exist.

-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.


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

Reply via email to