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

cfowler cfowler at outpostsentinel.com
Fri Jan 31 21:04:06 EST 2003



You've got to tell bash to run like it is logging in

You can do this 2 ways.

1) bash --login

or from C in case you need to:

2) execl("/bin/bash", "-sh", 0);

The key is the -sh in that statement above.

On 12/31/1969, "Christopher Bergeron" <christopher at bergeron.com> 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
>
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list