View previous topic :: View next topic |
Author |
Message |
BlackMan890 Tux's lil' helper
Joined: 03 Jul 2005 Posts: 134 Location: Iceland
|
Posted: Sun Jul 31, 2005 4:15 pm Post subject: scripts and stuff... |
|
|
Hi guys
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 |
|
|
tuam l33t
Joined: 04 May 2004 Posts: 765 Location: CGN, Germany
|
Posted: Sun Jul 31, 2005 4:42 pm Post subject: Re: scripts and stuff... |
|
|
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 |
|
|
BlackMan890 Tux's lil' helper
Joined: 03 Jul 2005 Posts: 134 Location: Iceland
|
Posted: Sun Jul 31, 2005 4:46 pm Post subject: Re: scripts and stuff... |
|
|
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 |
|
|
tuam l33t
Joined: 04 May 2004 Posts: 765 Location: CGN, Germany
|
Posted: Sun Jul 31, 2005 7:59 pm Post subject: Re: scripts and stuff... |
|
|
BlackMan890 wrote: | Where do i configure the PATH variable? |
For all users: /etc/profile
For one user: /home/.../.bashrc
FF,
Daniel |
|
Back to top |
|
|
BlackMan890 Tux's lil' helper
Joined: 03 Jul 2005 Posts: 134 Location: Iceland
|
Posted: Mon Aug 01, 2005 6:42 pm Post subject: Re: scripts and stuff... |
|
|
tuam wrote: | For all users: /etc/profile
For one user: /home/.../.bashrc |
Thanks man, that really helped me out |
|
Back to top |
|
|
|