<div dir="ltr">exporting your path just makes it available for other shells. If you can run `echo $PATH` and you see '/home/larry/bin' as part of your PATH, it's definitely in you path for that particular seesion, you might make sure that the permissions are correct `ls -lah /home/larry/bin` should show execute bits on foo.sh</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 9:27 PM, James Mcphee <span dir="ltr"><<a href="mailto:jmcphe@gmail.com" target="_blank">jmcphe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">If you don't add export PATH=/home/larry/bin:${PATH} to your .bash_profile (or .profile, or .bashrc depending on your shell and how you execute it), you'd need to do it each time. Adding the export into your profile or rc files will make sure that's run at shell execution. Consult your shell documentation for the correct files and when/if they are loaded at any time.<div>
<br></div><div>For example, if you go through the standard login function, bash reads /etc/bash_profile (fallback to /etc/profile), ~/.bash_profile, ~/.bash_login, and then ~/.profile, in that order. Subshells take the rc files, like /etc/bashrc and ~/.bashrc. And of course, your various profile and rc files usually contain things like bash_profile's: ". ~/.bashrc" and debian's sourcing of scripts in /etc/profile.d in /etc/profile.</div>
<div><br></div><div>For general use, just add your stuff to ~/.profile and you'll almost always get it for most shells that you interact with.</div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">
On Wed, Feb 26, 2014 at 10:07 PM, Dazed_75 <span dir="ltr"><<a href="mailto:lthielster@gmail.com" target="_blank">lthielster@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I don't remember as I did it long ago. but when I type echo $PATH, what I get is:<br><br>/home/larry/bin:/opt/OpenPrinting-Gutenprint/sbin:/opt/OpenPrinting-Gutenprint/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games<br>
<br></div>does that mean I did? or if I need to export it, when and how often is it needed?<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 9:26 PM, Carl Parrish <span dir="ltr"><<a href="mailto:cparrish@carlparrish.com" target="_blank">cparrish@carlparrish.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Did you export? </p>
<div class="gmail_quote"><div><div>On Feb 26, 2014 8:18 PM, "Dazed_75" <<a href="mailto:lthielster@gmail.com" target="_blank">lthielster@gmail.com</a>> wrote:<br type="attribution"></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr"><div>I thought $PATH contained the series of paths searched to find an executable file by the name specified on the command line. Specifically if my $ENV contains a $PATH which reads:<br><br></div>/home/larry/bin:<more paths> <br>
<br>that an executable file like foo.sh found in /home/larry/bin/ could be run by simply typing foo.sh on the command line. What am I doing wrong as it does not work though it does if I type ./bin/foo.sh while in /home/larry/?<br clear="all">
<div><div><br>-- <br>Dazed_75 a.k.a. Larry<br><br>Please protect my address like I protect yours. When sending messages to multiple recipients, use the BCC:
(Blind carbon copy). Remove addresses from a forwarded message body before clicking Send. <br>
</div></div></div>
<br></div></div>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br><br clear="all"><br>-- <br>Dazed_75 a.k.a. Larry<br>
<br>Please protect my address like I protect yours. When sending messages to multiple recipients, use the BCC:
(Blind carbon copy). Remove addresses from a forwarded message body before clicking Send. <br>
</div>
</div></div><br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div><span class="HOEnZb"><font color="#888888">James McPhee<br>
<a href="mailto:jmcphe@gmail.com" target="_blank">jmcphe@gmail.com</a>
</font></span></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
Paul Mooring<div>Operations Engineer</div><div>Chef</div></div>
</div>