This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Permissions

Old posts that have not been replied to for several years.
Locked
t
the_crow
Halfop
Posts: 42
Joined: Fri Feb 28, 2003 7:37 am
Location: Lisboa, Portugal

Permissions

Post by the_crow »

hello to all :)
I need some help.
I don't know what permissions to do in a file.
Inicialy the file runs with the ./ but i don't want to run the file with ./
Sorry my english... let me show you a exemple.

Exemple:

./eggdrop -m teste

eggdrop -m teste ( what i want)

thanks :)
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

HuH.I think this is deep in linux.I dont think is so easy to change....
User avatar
Turambar
Halfop
Posts: 56
Joined: Thu May 29, 2003 6:25 am

Post by Turambar »

you can't change that
you nee to run it with ./ because the eggdrop is not installed on the whole system by root but only is yours.
I'm not 100% shure but i think that's it :)

feel free to correct me
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I don't see where's the problem in adding 2 extra characters ./ ?
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

add the eggdrop dir to your PATH variable
photon?
User avatar
Souperman
Halfop
Posts: 69
Joined: Sat Feb 02, 2002 8:00 pm
Location: Cape Town, South Africa
Contact:

Post by Souperman »

]Kami[ wrote:HuH.I think this is deep in linux.I dont think is so easy to change....
Actually it's trivially easy to change ... when you type a command into your shell (bash, csh, tcsh, etc), it looks for the program in each directory listed in the PATH environment variable. The reason you have to run a lot of programs with "./" prefixed is because you are telling the shell that the program is in the current directory (which isn't normally in the PATH in most *nix setups). "./" means "the current working directory", just like "../" means "the parent directory of the current working directory". To add the current directory to your PATH, add the following to ~/.bash_profile:

Code: Select all

export PATH=$PATH:.
Quick! Somebody get me a new ink cartridge
Locked