Re: Logout script

2000-04-20 Thread John Summerfield
> 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 s

Re: Logout script

2000-04-20 Thread Alex Kanavin
On 19 Apr 2000, Carlos Saldarriaga wrote: > sx1 > echo -e 'logout /r' > > Any suggestions. > Thanks. Look at the /etc/passwd file. The last field is the program that runs when user logs in. Normally it's shell, but you should put there your program. -- Alexander Homepage: http://www.sensi.or

Re: Logout script

2000-04-20 Thread James M. Rogers
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

Re: Logout script

2000-04-20 Thread Ivan Jager
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

Re: Logout script

2000-04-20 Thread Alan Cox
> #This is the application > sx1 > echo -e 'logout /r' > > Any suggestions. You dont actually need a script for this. Any program can be a users shell. Do chsh user /full/path/to/sx1 -- To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Re: Logout script

2000-04-20 Thread Viorel Anghel
On Wed, Apr 19, 2000 at 11:19:39PM -0700, 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

Re: Logout script

2000-04-20 Thread Ola Adigun
Perhaps replacing the last line with exit might solve the problem. Ola --- Carlos Saldarriaga <[EMAIL PROTECTED]> 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

Logout script

2000-04-20 Thread Carlos Saldarriaga
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