The time now is 07/07/08 - 01:40
Log in: Username: Password:
Search forums for:
  
 
H-Desk.com Forum Index

H-Desk.com - PC Security matters - Protect your PC privacy


POSIX Shell: Environment Variables


H-Desk.com Forum Index -> Server Side Languages - PHP, PERL/CGI, ASP, ColdFusion, ...

Post new topic   Reply to topic
Author Message
gaston



Joined: 20 Mar 2004
Posts: 189



PostPosted: 05/21/07 - 07:32    Post subject: Reply with quote

I am trying to make in my home directory folder which will contains programs and an executable script. I want to provide possibility that when ever I open the shell I can execute that programs and scripts, but without going to folder where they are located. I know it is possible, because I have worked a long time ago with BASH SHELL, but I forgot how to set environment variables.
Back to top
martie



Joined: 26 May 2005
Posts: 201



PostPosted: 06/15/07 - 03:54    Post subject: Reply with quote

First of all, you have to open a configuration file. For that action you will need root access. After that in the configuration file find the line beginning with $PATH. On that line add absolute path to folder with your programs and executable scripts. This will add folder of yours to system search path, so all commands you enter will be looked for along that path. You can, also, do it temporarily by issuing next command in shell prompt:
$ typeset r PATH(absolute path to your folder)
Back to top
Display posts from previous:   
Post new topic   Reply to topic All times are GMT

H-Desk.com Forum Index -> Server Side Languages - PHP, PERL/CGI, ASP, ColdFusion, ...

Page 1 of 1

Related topics:
J2SE Runtime Environment 5.0?
Java 2 Runtime environment info
Unix into Linux environments?
The user environments available for FreeBSD, somewhat limited?
Trouble creating a VPN environment