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
On Fri, 2003-10-03 at 12:29, Marshal Newrock wrote:
> >From the top of .bashrc:
> # This file is sourced by all bash shells on startup, whether interactive
> # or not. This file *should generate no output* or it will break the
> # scp and rcp commands.
>
> >From the top of .bash_profile:
> #This
On Fri, 3 Oct 2003, Richard Revis wrote:
> I have a .bash_profile that calls .bashrc, and fortune is called from
> .bashrc (fortune -s bofh-excuses homer futurama chalkboard) to give me a
> quote when I log in.
>
> This mostly works fine, but when I try and scp something _to_ this machine
> from a
I have a .bash_profile that calls .bashrc, and fortune is called from
.bashrc (fortune -s bofh-excuses homer futurama chalkboard) to give me a
quote when I log in.
This mostly works fine, but when I try and scp something _to_ this machine
from another it just displays the first line of the fortune
On Thu, 07 Aug 2003 13:32:08 -0400
daniel <[EMAIL PROTECTED]> wrote:
> On August 7, 2003 01:05 pm, Ernie Schroder wrote:
> > Hi All,
> > I just messed up! I blew away my .bashrc. It seems that it might be
> > recoverable because my aliases are still working. Any ideas?
>
> i've done this befo
On Thursday 07 August 2003 17:02, Dr. Robert M. Fuhrer wrote:
> At 03:55 PM 8/7/2003 -0600, Collins Richey wrote:
> >On Thu, 07 Aug 2003 15:19:12 -0400
> >
> >"Dr. Robert M. Fuhrer" <[EMAIL PROTECTED]> wrote:
> > > What about "typeset -f"?
> >
> >No man entry for this. What does 'typeset' do.
>
>
At 03:55 PM 8/7/2003 -0600, Collins Richey wrote:
On Thu, 07 Aug 2003 15:19:12 -0400
"Dr. Robert M. Fuhrer" <[EMAIL PROTECTED]> wrote:
>
> What about "typeset -f"?
>
No man entry for this. What does 'typeset' do.
Sorry; it's a bash built-in. It displays the definitions of
all the user-defined func
Hi All,
I just messed up! I blew away my .bashrc. It seems that it might be
recoverable because my aliases are still working. Any ideas?
--
Regards, Ernie
100% Microsoft and Intel free
--
[EMAIL PROTECTED] mailing list
On Thursday 07 August 2003 21:50, Collins Richey wrote:
> On Thu, 7 Aug 2003 21:13:05 -0500
>
> Steven Elling <[EMAIL PROTECTED]> wrote:
> > On Thursday 07 August 2003 17:02, Dr. Robert M. Fuhrer wrote:
> > > At 03:55 PM 8/7/2003 -0600, Collins Richey wrote:
> > > >On Thu, 07 Aug 2003 15:19:12 -040
On Thu, 07 Aug 2003 15:19:12 -0400
"Dr. Robert M. Fuhrer" <[EMAIL PROTECTED]> wrote:
>
> What about "typeset -f"?
>
No man entry for this. What does 'typeset' do.
--
Collins Richey - Denver Area
if you fill your heart with regrets of yesterday and the
worries of tomorrow, you have no today
Steven Elling wrote:
Here is a nice trick. Want to know which package the executables tic, tack
and toe belong to? Just do the following (those a backtick not single
quotes):
~ $> epm -qf `type -p tic`
ncurses-5.3-r1
~ $> epm -qf `type -p tac`
textutils-2.1
~ $> epm -qf `type -p toe`
ncurses-5
On Fri, 8 Aug 2003 01:41:30 -0500
Steven Elling <[EMAIL PROTECTED]> wrote:
> On Thursday 07 August 2003 21:50, Collins Richey wrote:
> > On Thu, 7 Aug 2003 21:13:05 -0500
> >
> > Steven Elling <[EMAIL PROTECTED]> wrote:
> > > On Thursday 07 August 2003 17:02, Dr. Robert M. Fuhrer wrote:
> > > > At
On Thursday 07 August 2003 03:52 pm, Condon Thomas A KPWA wrote:
> Anthony Floyd wrote:
> > On Thu, 07 Aug 2003 13:32:08 -0400
> >
> > daniel <[EMAIL PROTECTED]> wrote:
> >> On August 7, 2003 01:05 pm, Ernie Schroder wrote:
> >>> Hi All,
> >>> I just messed up! I blew away my .bashrc. It seems th
On Thursday 07 August 2003 12:52 pm, Condon Thomas A KPWA wrote:
> Anthony Floyd wrote:
> > On Thu, 07 Aug 2003 13:32:08 -0400
> >
> > daniel <[EMAIL PROTECTED]> wrote:
> >> On August 7, 2003 01:05 pm, Ernie Schroder wrote:
> >>> Hi All,
> >>> I just messed up! I blew away my .bashrc. It seems th
Zack Gilburd wrote:
> I don't know what client you are using,
X-Mailer: Internet Mail Service (5.5.2655.55)
Isn't that from Maycrashsoft?
Norberto
pgp0.pgp
Description: signature
On August 7, 2003 01:05 pm, Ernie Schroder wrote:
> Hi All,
> I just messed up! I blew away my .bashrc. It seems that it might be
> recoverable because my aliases are still working. Any ideas?
i've done this before too. the way i recovered was (a) copy the one in
/etc/skel/.bashrc to ~. i
On Saturday 09 Aug 2003 09:25, Dhruba Bandopadhyay wrote:
> This can also be done as:
>
> etcat -b `which tic`
>
> Or,
>
> qpkg -f `which tic`
>
> For completeness.
qpkg -f `which tic` is by far the faster
Peter
--
==
Gentoo Linux: Gentoo Base Sy
Anthony Floyd wrote:
> On Thu, 07 Aug 2003 13:32:08 -0400
> daniel <[EMAIL PROTECTED]> wrote:
>
>> On August 7, 2003 01:05 pm, Ernie Schroder wrote:
>>> Hi All,
>>> I just messed up! I blew away my .bashrc. It seems that it might be
>>> recoverable because my aliases are still working. Any ide
On Thu, 7 Aug 2003 21:13:05 -0500
Steven Elling <[EMAIL PROTECTED]> wrote:
> On Thursday 07 August 2003 17:02, Dr. Robert M. Fuhrer wrote:
> > At 03:55 PM 8/7/2003 -0600, Collins Richey wrote:
> > >On Thu, 07 Aug 2003 15:19:12 -0400
> > >
> > >"Dr. Robert M. Fuhrer" <[EMAIL PROTECTED]> wrote:
> >
On Thursday 07 August 2003 01:41 pm, Anthony Floyd wrote:
> On Thu, 07 Aug 2003 13:32:08 -0400
>
> daniel <[EMAIL PROTECTED]> wrote:
> > On August 7, 2003 01:05 pm, Ernie Schroder wrote:
> > > Hi All,
> > > I just messed up! I blew away my .bashrc. It seems that it might
> > > be recoverable beca
At 02:03 PM 8/7/2003 -0400, Ernie Schroder wrote:
On Thursday 07 August 2003 01:41 pm, Anthony Floyd wrote:
> On Thu, 07 Aug 2003 13:32:08 -0400
>
> daniel <[EMAIL PROTECTED]> wrote:
> > On August 7, 2003 01:05 pm, Ernie Schroder wrote:
> > > Hi All,
> > > I just messed up! I blew away my .bashrc
Hi!
r> which are the packges that contain .bashrc/.bash_profile files ?!
r> tia
r> PS. etcat & qpkg cant find them !?
I am not at my gentoo box right now, but I think they should be in the
bash package.
BTW, you are probably looking for the wrong files. Normaly if you
create a new user then a hom
On Thu, 24 Jul 2003 16:43:39 +0300
raptor <[EMAIL PROTECTED]> wrote:
> which are the packges that contain .bashrc/.bash_profile files ?!
These files aren't contained in any packages, just create them yourself.
--
Linux inside
NP: Kreator - Grinder
--
[EMAIL PROTECTED] mailing list
Look in /etc/skel
ls -la should show you if they are there.
On Thu, 2003-07-24 at 07:43, raptor wrote:
> hi,
>
> which are the packges that contain .bashrc/.bash_profile files ?!
>
> tia
> PS. etcat & qpkg cant find them !?
>
>
> --
> [EMAIL PROTECTED] mailing list
--
Bobby R. Cox
Linux Sys
hi,
which are the packges that contain .bashrc/.bash_profile files ?!
tia
PS. etcat & qpkg cant find them !?
--
[EMAIL PROTECTED] mailing list
Bruce Noorish is the name.
On Fri, 31 Jan 2003 07:48:44 -0500
"brett holcomb" <[EMAIL PROTECTED]> wrote:
Because ! If you note .bash_profile can't do output
or it breaks things like scp, etc. Check back through
the threads on how things work (Bruce No??? was the
author in response to my que
Because ! If you note .bash_profile can't do output or
it breaks things like scp, etc. Check back through the
threads on how things work (Bruce No??? was the author in
response to my questions. I'm not at my machine so I
can't get the details but I set up a /etc/bashrc for
site/host specifi
.bashrc runs everytime a shell is opened and .bash_profile is run only
when a user logs in.
My question then is why the default .bashrc is empty and the default
.bash_profile has:
$ more .bash_profile
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General
53 matches
Mail list logo