[ale] how to get bash to run .bash_profile?

cfowler cfowler at outpostsentinel.com
Mon Feb 3 08:40:49 EST 2003


Use the source Luke


On Mon, 2003-02-03 at 00:32, Christopher Bergeron wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>  
> Well, here's the strange thing: on my distro it still doesn't work.  My 
> [relevant] inittab line(s) read:
> 
> c1:12345:respawn:/bin/bash --login -i < /dev/tty1 1>/dev/tty1 2>/dev/tty1
> c2:1235:respawn:/sbin/agetty 38400 tty2 linux
> c3:1235:respawn:/sbin/agetty 38400 tty3 linux
> c4:1235:respawn:/sbin/agetty 38400 tty4 linux
> c5:1235:respawn:/sbin/agetty 38400 tty5 linux
> c6:12345:respawn:/sbin/agetty 38400 tty6 linux
> 
> And when I ssh into the box it executes the .bash_profile.  However, 
> when I boot the box the first console loads bash, but doesn't load the 
> .bash_profile.  
> 
> So, I'm effectively still stumped on this.  I've scoured the man pages, 
> but I still can't figure this out!
> 
> More help is greatly appreciated (as always) -
> CB
> 
> 
> 
> da Black Baron wrote:
> 
> |Ooops.  Mybad.  I've just never seen the file in that format before.
> |Sorry.  :-)
> |
> |On Sun, 2003-02-02 at 23:30, John Wells wrote:
> |
> |>Nope.  Shouldn't.
> |>
> |>Here's an excerpt from `man bash`:
> |>
> |>When  bash is invoked as an interactive login shell, or as a
> |>non&#8208;inter&#8208;
> |>       active shell with the &#8722;&#8722;login option, it first reads
> |>and executes  com&#8208;
> |>       mands  from  the file /etc/profile, if that file exists.  After
> |>reading
> |>       that file, it looks for ~/.bash_profile, ~/.bash_login, and
> |>~/.profile,
> |>       in  that order, and reads and executes commands from the first one
> |>that
> |>       exists and is readable.  The &#8722;&#8722;noprofile option may be
> |>used  when  the
> |>       shell is started to inhibit this behavior.
> |>
> |>
> |>John
> |>
> |>da Black Baron said:
> |>
> |>>You want to write a .bashrc file and a .profile file.  Bash will ingore
> |>>something named .bash_profile... :-)
> |>>
> |>>On Fri, 2003-01-31 at 20:55, Christopher Bergeron wrote:
> |>>
> |>>>-----BEGIN PGP SIGNED MESSAGE-----
> |>>>Hash: SHA1
> |>>>
> |>>>Hey guys, how do I get bash to run .bash_profile?  I'm looking at my
> |>>>startup, and I'm trying to figure out why when I set my inittab to
> |>>>load:  /bin/bash instead of a "getty".  When it spawn's by bash
> |>>>session,  it doesn't load my .bash_profile.  Is there a way I can load
> |>>>a bash  shell and have it subsequently execute my .bash_profile?
> |>>>
> |>>>Alternatively, is there a way to get a getty to log in automatically
> |>>>(on  slackware!).  For some reason, I can't get slackware to use the
> |>>>mingetty+autologin patch/binary.  I was able to get it to work on
> |>>>RhAT,  but not on Slack8.
> |>>>
> |>>>Preferably, I'd like to skip "getty" altogether...
> |>>>
> |>>>
> |>>>Thanks!
> |>>>- -CB
> |>>>-----BEGIN PGP SIGNATURE-----
> |>>>Version: GnuPG v1.2.1 (MingW32)
> |>>>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> |>>>
> |>>>iD8DBQE+OykYTKCy0t3zQgURAkdcAJ91SBx84EVqeavZ1/HOOQhy2SUcWgCgxUfv
> |>>>wZS2HDYI0mkgVl2Ozs6YUo0=
> |>>>=dFaj
> |>>>-----END PGP SIGNATURE-----
> |>>>
> |>>>
> |>>>_______________________________________________
> |>>>Ale mailing list
> |>>>Ale at ale.org
> |>>>http://www.ale.org/mailman/listinfo/ale
> |>>
> |>>--
> |>>-------------------------------------------------------------------------
> |>>-------------------------------------------------------------------------
> |>>"Here's my family tree.  As far as I can tell, my relatives were
> |>>carnival folk who were touring this place called Hiroshima in
> |>>the summer of 1945.  Because they lost most of their hair, they
> |>>mostly married each other.  And here I am"
> |>>
> |>>-------------------------------------------------------------------------
> |>>-------------------------------------------------------------------------
> |>>
> |>>                                                        (,,oBo,,)
> |>> Wylde Bill                                               ||||
> |>>__________________________________________           http://lyst.org
> |>>
> |>>http://mrpooter.sytes.net
> |>>wyldechylde at geocities.com
> |>>-------------------------------------------------------------------------
> |>>-------------------------------------------------------------------------
> |>>
> |>>
> |>>_______________________________________________
> |>>Ale mailing list
> |>>Ale at ale.org
> |>>http://www.ale.org/mailman/listinfo/ale
> |>
> |>
> |>
> |>_______________________________________________
> |>Ale mailing list
> |>Ale at ale.org
> |>http://www.ale.org/mailman/listinfo/ale
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>  
> iD8DBQE+Pf74TKCy0t3zQgURAnpQAKCrieT+Uxb5tP9O/XsI6fDVAl9CsQCeN1Ly
> 4mahtqLVfSXst6MaKKJs5eU=
> =OCcw
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list