Oliver Lange wrote:
Does anyone know how to use ssh in a way that ~/.bashrc is
executed at logon ?

The exact details of when and why bash, or any other shell, sources files is beyond me but....


Currently, I need to start a bash right after logging in, then must
enter 'exit' twice to log off..

If you run `exec bash` instead of `bash` the exec will exit the first shell as it forks the new shell saving you from having to exit two shells. Run `man bash` and seach for exec for details.


Also in un*x most everyhing is a file, including standard in. Also <ctrl>+d is usually the key combination to send an EOF which, unless your shell has ignoreeof set in the enviroment, will exit the shell, saving you a few key strokes.

Sandy McArthur


-- [EMAIL PROTECTED] mailing list



Reply via email to