Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Executing commands on user login
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Plastic
l33t
l33t


Joined: 24 Mar 2004
Posts: 649

PostPosted: Wed Aug 03, 2005 7:12 pm    Post subject: Executing commands on user login Reply with quote

I'm trying to start mpd when I login, but I can't the right file to put it in. bashrc works, but it is executed every time I open a new shell. I know I'm missing something here, could someone clue me in?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Aug 03, 2005 7:14 pm    Post subject: Reply with quote

Copy the code from the initscripts that figures out if the bash started is a login shell - that only happens when you login to bash.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Wed Aug 03, 2005 7:41 pm    Post subject: Reply with quote

You might try moving it from your .bashrc to your .bash_profile. See the section INVOCATION in man bash.
Back to top
View user's profile Send private message
Plastic
l33t
l33t


Joined: 24 Mar 2004
Posts: 649

PostPosted: Wed Aug 03, 2005 7:48 pm    Post subject: Reply with quote

Thanks limn, that was what I was looking for.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum