Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
scripts and stuff...
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
BlackMan890
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 134
Location: Iceland

PostPosted: Sun Jul 31, 2005 4:15 pm    Post subject: scripts and stuff... Reply with quote

Hi guys :D

I have been loving how gentoo works and such, and i would like to ask a few questions myself to learn a bit more.

1. In Gentoo, there are text files that programs (like Console and X and such) run when you run the program.
Where are the directory of those files?

when turning X off, i could see that it was trying to run a special file it runs when you shut it down, i wanted to add something to that line but i didn't know where this file was.
line i wanted to add wrote:
logoff

Is here a doc (like, can i see in the man pages) where it says where those files are?

2. I love crating scripts, but in Linux, you have to add ./ in front of that to make it run.
How can i disable that, so that i would only have to type the name instead of adding ./ in front
How can i make it so that i can run it anywhere?

3. In linux, you can make scripts and such run at boot up.
How can i do that?
Can you link me to a manual that explains further about that?


Thanks in advance :)
Back to top
View user's profile Send private message
tuam
l33t
l33t


Joined: 04 May 2004
Posts: 765
Location: CGN, Germany

PostPosted: Sun Jul 31, 2005 4:42 pm    Post subject: Re: scripts and stuff... Reply with quote

BlackMan890 wrote:

2. I love crating scripts, but in Linux, you have to add ./ in front of that to make it run.
How can i disable that, so that i would only have to type the name instead of adding ./ in front
How can i make it so that i can run it anywhere?


This is because "normal" executables are searched in the PATH. You could copy all your scripts into one directory (/home/blackman/bin/ or /usr/local/bin/) and include this into your PATH variable.

Quote:

3. In linux, you can make scripts and such run at boot up.
How can i do that?
Can you link me to a manual that explains further about that?


http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4 :?:

FF,

Daniel
Back to top
View user's profile Send private message
BlackMan890
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 134
Location: Iceland

PostPosted: Sun Jul 31, 2005 4:46 pm    Post subject: Re: scripts and stuff... Reply with quote

tuam wrote:
This is because "normal" executables are searched in the PATH. You could copy all your scripts into one directory (/home/blackman/bin/ or /usr/local/bin/) and include this into your PATH variable.


Where do i configure the PATH variable?

tuam wrote:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4 :?:


thanks for the link, i will check it out :)
Back to top
View user's profile Send private message
tuam
l33t
l33t


Joined: 04 May 2004
Posts: 765
Location: CGN, Germany

PostPosted: Sun Jul 31, 2005 7:59 pm    Post subject: Re: scripts and stuff... Reply with quote

BlackMan890 wrote:
Where do i configure the PATH variable?


For all users: /etc/profile

For one user: /home/.../.bashrc

FF,

Daniel
Back to top
View user's profile Send private message
BlackMan890
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 134
Location: Iceland

PostPosted: Mon Aug 01, 2005 6:42 pm    Post subject: Re: scripts and stuff... Reply with quote

tuam wrote:
For all users: /etc/profile

For one user: /home/.../.bashrc


Thanks man, that really helped me out :)
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