Yes thanks Lonnie and yes I was aware that I would need to add it with each 
build (yuk).
I think I might take option 1).

Regards
Michael Knill







-----Original Message-----
From: Lonnie Abelbeck <li...@lonnie.abelbeck.com>
Reply-To: AstLinux List <astlinux-users@lists.sourceforge.net>
Date: Monday, 11 April 2016 at 11:52 AM
To: AstLinux List <astlinux-users@lists.sourceforge.net>
Subject: Re: [Astlinux-users] $PATH

Michael,

Editing /etc/profile is not good, since any future changes of it in the base 
system will be ignored.

The better way is to create a ~/.bashrc file (look how it is called in 
/etc/profile) .

Of course you need the ~/.bashrc file to be persistent across reboots, that can 
be done by either:

1) create the directory "/mnt/kd/root" and then /root will be automatically 
symlinked to /mnt/kd/root at startup.

2) In a startup script, (ex. /mnt/kd/rc.local) copy a persistent file from 
/mnt/kd/ to /root/.bashrc .

Then in the .bashrc file would include:
--
export PATH="$PATH:/mnt/kd/scripts"
--

I assume you are doing all this so a CLI user can type a command without the 
full path name ?

Lonnie



On Apr 10, 2016, at 7:39 PM, Michael Knill <michael.kn...@ipcsolutions.com.au> 
wrote:

> Hi group
> 
> I have a new script in /mnt/kd/scripts that I want in $PATH and I have edited 
> it in /etc/profiles. 
> Is this the best way of doing it e.g. So I don’t need to do this for every 
> build.
> 
> Regards
> Michael Knill



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to