On Tue, Dec 09, 2003 at 08:34:36PM +0100, Oliver Lange wrote:
> Does anyone know how to use ssh in a way that ~/.bashrc is
> executed at logon ? Currently, I need to start a bash right
> after logging in, then must enter 'exit' twice to log off..
man bash
read the section INVOCATION
It will take
Le Mercredi, 10 Décembre 2003 16.31, Patrick Börjesson a écrit :
> > add echoes in your .bash* files, like:
> >
> > echo "executing bashrc"
>
> ^^ I wouldn't recommend this as some things (like ssh) won't like the
> output when sourcing .bashrc AFAIK
yes right, but that's only for testing purpos
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wednesday 10 December 2003 01:02, Oliver Lange wrote:
> Ric Messier wrote:
> > What do you have set for your shell?
>
> Sorry, i don't understand the question, but there are
> so many (different!!) replies to my initial question
> that i guess the a
> add echoes in your .bash* files, like:
>
> echo "executing bashrc"
^^ I wouldn't recommend this as some things (like ssh) won't like the
output when sourcing .bashrc AFAIK
Patrick Börjesson
--
Public key ID: 4C5AB0BF
Public key available at wwwkeys.pgp.net
pgp0.pgp
Description: PGP si
On Wed, 10 Dec 2003, David Gethings wrote:
>
> As you rightly pointed out neither .bashrc nor .bash_profile are
> executable. For the line in your .bash_profile to include your config in
> .bashrc make it executable (chmod u+x .bashrc).
>
No, you don't need to do that. The . tells it to be pars
On Wed, 10 Dec 2003, Oliver Lange wrote:
>
> I have a .bash_profile, but i'm not sure if and which shell i'm using.
> I can only say this: i've installed gentoo. How can i fugure out which
> shell is set for my user and for the root account ?
>
Yep. Which again leads me to believe that somehow
> I have a .bash_profile, but i'm not sure if and which shell i'm using.
> I can only say this: i've installed gentoo. How can i fugure out which
> shell is set for my user and for the root account ?
finger
grep /etc/passwd | awk -F: '{print $7}'
use chsh to change your shell.
> The strange t
On Wed, 2003-12-10 at 14:12, Oliver Lange wrote:
> Eric Paynter wrote:
> >>Gentoo by default sources .bashrc from .bash_profile which is, of
> >>course, why I asked what shell he is using. If .bashrc isn't
> >>getting run, then perhaps he has a different shell without
> >>realizing it.
> >
> > O
Eric Paynter wrote:
Or perhaps he doesn't have a .bash_profile...
Addendum:
I just found out that everything works fine as long i'm
logging in under my user account - the problem only occurs
when i login as root, even local login won't execute the
.bashrc in /root, no matter if i login locally o
Eric Paynter wrote:
Gentoo by default sources .bashrc from .bash_profile which is, of
course, why I asked what shell he is using. If .bashrc isn't
getting run, then perhaps he has a different shell without
realizing it.
Or perhaps he doesn't have a .bash_profile...
I have a .bash_profile, but i'
Le Mercredi, 10 Décembre 2003 11.21, Oliver Lange a écrit :
> Ric Messier wrote:
> > On Tue, 9 Dec 2003, Eric Paynter wrote:
> >
> > The problem with symlinking one to the other as you suggest is if you
> > ever use something like scp, you potentially break it, as the comment in
> > .bashrc says. A
Ric Messier wrote:
On Tue, 9 Dec 2003, Eric Paynter wrote:
The problem with symlinking one to the other as you suggest is if you ever
use something like scp, you potentially break it, as the comment in
.bashrc says. All my profile-ish things that generate output get put,
correctly, into .bash_p
Eric Paynter wrote:
mv ~/.bash_profile ~/.bash_profile.bkp
ln -s ~/.bashrc ~/.bash_profile
Then you get the same thing, no matter how you started the shell.
Also, you can edit either file and the other gets the edits, since
they are really both the same file, just with two names.
Interesting. Thank
Ric Messier said:
> Gentoo by default sources .bashrc from .bash_profile which is, of
> course, why I asked what shell he is using. If .bashrc isn't
> getting run, then perhaps he has a different shell without
> realizing it.
Or perhaps he doesn't have a .bash_profile...
-Eric
--
arctic bears
On Tue, 9 Dec 2003, Eric Paynter wrote:
>
> When you initiate an interactive session, the shell chooses an
> initialization script to run based on how you started the session.
> If you use bash, it may run ~/.bashrc or ~/.bash_profile.
Gentoo by default sources .bashrc from .bash_profile which
Oliver Lange said:
> brett holcomb wrote:
>> You could source ~/.bashrc from ~/.bash_profile.
>>
> What ?
>
> Sorry, Linux is still a riddle for me. Could you explain that
> in - lets say - one or two more lines ? :)
When you initiate an interactive session, the shell chooses an
initialization scr
Oliver Lange said:
> Ric Messier wrote:
>> What do you have set for your shell?
>>
> Sorry, i don't understand the question
The shell is what you use to interact with the operating system. By
default in Gentoo you use bash. Common alternatives include sh, ksh,
csh, and many many more...
-Eric
-
brett holcomb wrote:
You could source ~/.bashrc from ~/.bash_profile.
What ?
Sorry, Linux is still a riddle for me. Could you explain that
in - lets say - one or two more lines ? :)
--
[EMAIL PROTECTED] mailing list
Ric Messier wrote:
What do you have set for your shell?
Sorry, i don't understand the question, but there are
so many (different!!) replies to my initial question
that i guess the answer is already there... i just got
to try them all :)
Amazing how many different solutions i've already seen.
--
[
You could source ~/.bashrc from ~/.bash_profile.
On Tue, 09 Dec 2003 20:34:36 +0100
Oliver Lange <[EMAIL PROTECTED]> wrote:
Hello everyone,
Does anyone know how to use ssh in a way that ~/.bashrc
is
executed at logon ? Currently, I need to start a bash
right
after logging in, then must enter '
On Tue, Dec 09, 2003 at 02:48:30PM -0500, Ric Messier wrote:
> What do you have set for your shell?
>
> On Tue, 9 Dec 2003, Oliver Lange wrote:
>
> > Hello everyone,
> >
> > Does anyone know how to use ssh in a way that ~/.bashrc is
> > executed at logon ? Currently, I need to start a bash right
> Does anyone know how to use ssh in a way that ~/.bashrc is
> executed at logon ? Currently, I need to start a bash right
> after logging in, then must enter 'exit' twice to log off..
I have all my init. scripts in ~/.scriptrc and I have it called by ~/.bashrc
and ~/.bash_profile so it's called
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
Oliver Lange said:
> Does anyone know how to use ssh in a way that ~/.bashrc is
> executed at logon ? Currently, I need to start a bash right
> after logging in, then must enter 'exit' twice to log off..
It probably runs ~/.bash_login on login. I've symlinked the two
files together, since I expect
What do you have set for your shell?
On Tue, 9 Dec 2003, Oliver Lange wrote:
> Hello everyone,
>
> Does anyone know how to use ssh in a way that ~/.bashrc is
> executed at logon ? Currently, I need to start a bash right
> after logging in, then must enter 'exit' twice to log off..
>
--
[EMAIL
Hello everyone,
Does anyone know how to use ssh in a way that ~/.bashrc is
executed at logon ? Currently, I need to start a bash right
after logging in, then must enter 'exit' twice to log off..
--
[EMAIL PROTECTED] mailing list
26 matches
Mail list logo