rduncan10
27th March 2008, 21:19
Hi,
We use Baan with the ASCII interface on a Linux box.
Our normal users automatically log into Baan when they start Baan.
Is there a way to have them automatically log out of Linux when they quit the BSHELL. In other words, how can I make it so the users never see a command prompt.
Thanks,
Rob
dave_23
27th March 2008, 22:04
it's been a while.
Trying making their login shell ba6.1 (or a shell script that calls ba6.1)
Dave
günther
28th March 2008, 08:04
Hi,
we normally put as last line into the users .profile:
...
exec ba6.1
Note that there is a big difference:
* if you write "ba6.1" the current shell remains running (and commands after ba6.1 could be execute); i.e. the user has one more shell process.
* if you write "exec ba6.1" the command is executed in place of the current process without creating a new process; i.e. one process less (per user!), no command after ba6.1, and finally: logout after ba6.1!
For more information on exec you should have a look am man sh (ksh, bash, ...), because thats a builtin command.
Günther
bdittmar
28th March 2008, 09:36
Hi,
We use Baan with the ASCII interface on a Linux box.
Our normal users automatically log into Baan when they start Baan.
Is there a way to have them automatically log out of Linux when they quit the BSHELL. In other words, how can I make it so the users never see a command prompt.
Thanks,
Rob
Hello,
as Guenter mentioned :
Edit the .profile and add :
ba6.1
exit
If settings of BSE environment is correct, you don't need the exec command.
We use this for all ASCII Interface Users (Telnet VT220).
The user never see a shell !
Regards
günther
28th March 2008, 09:42
If settings of BSE environment is correct, you don't need the exec command.
For users, a) ba6.1; exit and b) exec ba6.1 are about the same; they never see the shell prompt after the exit ba6.1.
BUT: Each user has a (sleeping) shell process when use use a). So b) is better than a)!
Günther
rduncan10
9th April 2008, 20:03
Thanks to Günther.
In our environment (SUSE Linux), each bash shell took up about 9,000kb of virtual memory. Times that by our number of users, and that's close to half a gig of memory that was being used for nothing. We improved the performance of the server by adding exec.
Thanks again,
Rob