Re: [uClinux-dev] How to setup $PATH of uClinux ?

2010-02-04 Thread David McCullough

Jivin wzc0066 lays it down ...
 Hello, 
 
 After enter uClinux shell, run export PATH=$PATH:/local/bin, it works.
 But if i put the command export PATH=$PATH:/local/bin into /etc/rc, it not 
 run at all.

That is because /etc/rc is a script that runs to completion,  init then
starts other applications from inittab.

 I just want to add /local/bin into $PATH when bootup, so how should i do ?

Check and see if the shell you are using will load an /etc/profile or a
~/.profile

If not then you may need to edit your init source and add the extra path
info to it.

Cheers,
Davidm

-- 
David McCullough,  david_mccullo...@mcafee.com,  Ph:+61 734352815
McAfee - SnapGear  http://www.mcafee.com http://www.uCdot.org
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] How to setup $PATH of uClinux ?

2010-02-04 Thread Microbit_Ubuntu
Hi,

On Thu, 2010-02-04 at 18:44 +0800, wzc0066 wrote:
 Hello, 
 
 After enter uClinux shell, run export PATH=$PATH:/local/bin, it
 works.
 But if i put the command export PATH=$PATH:/local/bin into /etc/rc,
 it not run at all.
 
 I just want to add /local/bin into $PATH when bootup, so how should
 i do ?
 
 
 -- 
 wzc0066
 ___
 uClinux-dev mailing list
 uClinux-dev@uclinux.org
 http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 This message was resent by uclinux-dev@uclinux.org
 To unsubscribe see:
 http://mailman.uclinux.org/mailman/options/uclinux-dev


I personally find it handy to export PATH changes from the bash_aliases
file ( in /home/user , where user of course is your login name).
If you don't have the bash_aliases file yet, just create it and place
your PATH scripting there.
That will ensure your PATH is modified like you want after boot/login.

Note that I've disregarded any concerns one might have about security
issues.


HTH

-- 
Best regards,
Kris


___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] How to setup $PATH of uClinux ?

2010-02-04 Thread wzc0066
Thanks, i have edited the init source, and it works.

2010/2/4 David McCullough david_mccullo...@mcafee.com


 Jivin wzc0066 lays it down ...
  Hello,
 
  After enter uClinux shell, run export PATH=$PATH:/local/bin, it works.
  But if i put the command export PATH=$PATH:/local/bin into /etc/rc, it
 not run at all.

 That is because /etc/rc is a script that runs to completion,  init then
 starts other applications from inittab.

  I just want to add /local/bin into $PATH when bootup, so how should i
 do ?

 Check and see if the shell you are using will load an /etc/profile or a
 ~/.profile

 If not then you may need to edit your init source and add the extra path
 info to it.

 Cheers,
 Davidm

 --
 David McCullough,  david_mccullo...@mcafee.com,  Ph:+61 734352815
 McAfee - SnapGear  http://www.mcafee.com http://www.uCdot.org
 ___
 uClinux-dev mailing list
 uClinux-dev@uclinux.org
 http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 This message was resent by uclinux-dev@uclinux.org
 To unsubscribe see:
 http://mailman.uclinux.org/mailman/options/uclinux-dev




-- 
wzc0066
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev