bash login file [was Re: Debian equivalent of .login file?]
On Mon, Oct 14, 2002 at 10:14:00PM -0400, Levi Waldron wrote: > > I found that commands in my .bashrc file got executed every time I opened a > new konsole, but I have commands I only want to run once when I first log in. > It seems there are 2 ways to make commands that only run when you first log > in, but not every time you open a bash shell: Are you sure? I did a simple test by putting the following line at the top of my ~/.bashrc file: echo You are using bashrc I did not see the echo on starting a new konsole, but only when i logged in on a virtual console. Also if you enter "bash" at the commandline, you will see the echo. > > 1) put them in your ~/.bash_login file Does this work? Using the same echo test as above I saw no success. -Andy -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Debian equivalent of .login file?
On Sunday 13 October 2002 20:37, Mathias De Belder wrote: > > On Sun, Oct 13, 2002 at 01:27:36PM -0400, Levi Waldron wrote: > > > What's the Debian equivalent of Unix's .login and .logout files? > > > Any user can place these files in their home directory and their > > > commands will be run at login/logout, without having to do anything > > > as root? > > > > .bashrc and .bash_logout respectively. .bashrc should be sourced from > > .bash_profile. > Is there any similar things for KDM? I want some stuff ran when I log in > on the machine, and some stuff on logout. I found that commands in my .bashrc file got executed every time I opened a new konsole, but I have commands I only want to run once when I first log in. It seems there are 2 ways to make commands that only run when you first log in, but not every time you open a bash shell: 1) put them in your ~/.bash_login file 2) In KDE, drag and drop programs them into the Autostart folder which should be on your desktop (but wasn't on mine), or put shell scripts in the /home/username/.kde/Autostart directory and make sure the file has execute permission. Commands in the .bash_logout file seem to get run only during final logout, not when you exit from shells. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Debian equivalent of .login file?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 14 October 2002 4:33 pm, Kjetil Kjernsmo wrote: > On Sunday 13 October 2002 20:37, Mathias De Belder wrote: > > On Sun, Oct 13, 2002 at 01:27:36PM -0400, Levi Waldron wrote: > > > What's the Debian equivalent of Unix's .login and .logout files? > > > Any user can place these files in their home directory and their > > > commands will be run at login/logout, without having to do anything > > > as root? > > > > .bashrc and .bash_logout respectively. .bashrc should be sourced from > > .bash_profile. > > Is there any similar things for KDM? I want some stuff ran when I log in > on the machine, and some stuff on logout. > > Best, > > Kjetil I am pretty sure the standard debian kdm startup uses ~/.xsession If you run console then .bashrc gets run .bash_profile also gets run at somepoint, I am not sure when, but I use it to set ~/bin into the path and it seems to be set. - -- Alan Chandler [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE9qx0AuFHxcV2FFoIRAr5HAJ0cQCYQpo7K9nqaW5zJ/XAFa91GwQCeMW/Z 3jCdX201yR4Ro4oyauRrXQo= =vxnr -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Debian equivalent of .login file?
On Mon, Oct 14, 2002 at 05:33:54PM +0200, Kjetil Kjernsmo wrote: > > .bashrc and .bash_logout respectively. .bashrc should be sourced > > from .bash_profile. > > Is there any similar things for KDM? I want some stuff ran when I log > in on the machine, and some stuff on logout. I'm sorry, but I really have no idea. I don't run KDE, so I'm also not the person to ask to. Perhaps you should rephrase your question again in the debian-kde mailing list if you don't get feedback here ? OT: I really like the pictures about your orienting ski trips. Too bad .no is so expensive as a vacation country :/ -- Mathias De Belder -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Debian equivalent of .login file?
On Sunday 13 October 2002 20:37, Mathias De Belder wrote: > On Sun, Oct 13, 2002 at 01:27:36PM -0400, Levi Waldron wrote: > > What's the Debian equivalent of Unix's .login and .logout files? > > Any user can place these files in their home directory and their > > commands will be run at login/logout, without having to do anything > > as root? > > .bashrc and .bash_logout respectively. .bashrc should be sourced from > .bash_profile. Is there any similar things for KDM? I want some stuff ran when I log in on the machine, and some stuff on logout. Best, Kjetil -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Saying thanks [was: Debian equivalent of .login file?]
On Mon, 2002-10-14 at 00:15, Colin Watson wrote: > On Sun, Oct 13, 2002 at 06:12:38PM -0400, [EMAIL PROTECTED] wrote: > > Thank you! > > > > Is it considered polite to post a thank-you message, or is this > > unnecessary email traffic? > > IMHO it's nice to see that people's problems have been solved. It makes > a change from "aargh, it's all gone horribly wrong". :-) Not only nice, but also very usefull : when posting, always keep in mind that everything eventually ends up in online archives that will be used by a readership much larger than the relatively small group of list subscribers. So when your problem has been solved, by all means do notify the list of which solution was the correct one. When I trawl the archives for a solution to a problem, this is something I always find a very valuable time saver. signature.asc Description: This is a digitally signed message part
Re: Debian equivalent of .login file?
On Sun, Oct 13, 2002 at 06:12:38PM -0400, [EMAIL PROTECTED] wrote: > Thank you! > > Is it considered polite to post a thank-you message, or is this > unnecessary email traffic? IMHO it's nice to see that people's problems have been solved. It makes a change from "aargh, it's all gone horribly wrong". :-) -- Colin Watson [[EMAIL PROTECTED]] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Debian equivalent of .login file?
Thank you! Is it considered polite to post a thank-you message, or is this unnecessary email traffic? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Debian equivalent of .login file?
On Sun, Oct 13, 2002 at 01:27:36PM -0400, Levi Waldron wrote: > What's the Debian equivalent of Unix's .login and .logout files? Any > user can place these files in their home directory and their commands > will be run at login/logout, without having to do anything as root? .bashrc and .bash_logout respectively. .bashrc should be sourced from .bash_profile. If you want to set certain defaults for new users, you can place your tweaked config files in /etc/skel -- Mathias De Belder -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Debian equivalent of .login file?
On Sun, 13 Oct 2002, Levi Waldron wrote: > What's the Debian equivalent of Unix's .login and .logout files? Any user > can place these files in their home directory and their commands will be run > at login/logout, without having to do anything as root? It's a shell issue - look at your shell's manpage. Chances are that "man bash" should answer your questions - relevant files include /etc/profile ~/.bash_profile ~/.bashrc -- Mark -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Debian equivalent of .login file?
What's the Debian equivalent of Unix's .login and .logout files? Any user can place these files in their home directory and their commands will be run at login/logout, without having to do anything as root? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]