Re: I must be stupid (Linux Question)

new topic     » goto parent     » topic index » view thread      » older message » newer message

>Linux only searches the PATH variable.
>Edit your /etc/profile file.
>        e.g. $ jed /etc/profile
>This file contains all your basic configuration data.
>Add ./ to the start of the PATH variable
>        e.g. PATH=3D./:/rest/bin/
>        ( If there is no PATH add
>                PATH=3D./
>                export PATH
>        )
>If you install euphoria you will probablely wish to add it to your path
>        e.g. PATH=3D./:/rest/bin/:/usr/euphoria/bin/
>        if you place it in /usr/euphoria
>
>-------------------------
>Sincerely,
>Mathew Hounsell

If you are the only user that ever touches your Linux box, and you use a =
temporary dial-up internet connection, adding ./ to your path may be okay; =
otherwise, many Linux distributors consider it a security hole.  The best =
choice is to add the euphoria directory to the path, and move your other =
executables to the /usr/bin directory (which is already in the path).  One =
cool feature of *nix O/Ss is that you can add=20

#!/usr/bin/euphoria/exu=20

as the first line in your program (*.exu for our use), and set the rights =
with=20

chmod 755 myprog.exu

Then, you can just type ./myprog.exu if it's in your home directory, or =
move myprog.exu to /usr/bin and run it from anywhere.

Hope this helps a little more.

Michael J. Sabal
mjs at osa.att.ne.jp=20

BTW: The #!/shellname  feature is often called "hash-bang".

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu