<div dir="ltr">I think people are trying to overcomplicate this issue asking about commands like `file` and `type`.  There's only 2 things that matter for it to try and execute without an absolute or relative path:<div>

<br></div><div>1. Is it in a directory in my PATH?</div><div>2. Does is have the executable bit on?</div><div><br></div><div>If you want to convince yourself of this try moving a binary file (maybe a jpeg or png) into something in your path and setting it's permissions to 755, you'll get something like:</div>

<div><br></div><div>    paul@galactica $ nsa_smiley.jpg</div><div>    bash: /usr/local/bin/nsa_smiley.jpg: cannot execute binary file</div><div><br></div><div>It tries to execute the jpg file because the above criteria are met.  Larry already showed he can run `bin/foo.sh` from within his home directory, so the execute bit *is* set, therefore the only possible explanation is that the particular shell he's using does not have `$HOME/bin` inside his path.</div>

<div><br></div><div>How to add that to your shell on startup can be a loaded question.  Using bash on Linux the answer is put it in your $HOME/.bashrc file.  If you're using a different shell I'd start with the man page of that shell.  Also note that there's various things that could make the shell you're using different that what's in `/etc/passwd` (which is the same as $SHELL) so the value of $0 is likely what you want.</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 4:32 PM, sean <span dir="ltr"><<a href="mailto:sean.a.ritzler@gmail.com" target="_blank">sean.a.ritzler@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>You only posted the output of which after sourcing .profile. Your non-login, interactive bash sessions are sourcing .bashrc. Export your path in there.</p>

<div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Feb 27, 2014 5:29 PM, "Dazed_75" <<a href="mailto:lthielster@gmail.com" target="_blank">lthielster@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">You guys need to read the thread which already shows the output of which and type.  Let's just drop the whole subject as all we are getting is repeats of the same questions.<br></div><div class="gmail_extra">



<br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 4:00 PM, KevinO <span dir="ltr"><<a href="mailto:kevin@kevino.org" target="_blank">kevin@kevino.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>On 02/27/2014 03:55 PM, Dazed_75 wrote:<br>
> Sean, as stated before, I do have a bashrc and it is being adhered to by<br>
> the system.  There IS NO OUTPUT from killsol.sh.  It is designed to kill a<br>
> process if it exists and do so silently whether the process exists or not.<br>
</div>Larry,<br>
<br>
Sean is asking for the output of the 'which' command, when it is passed the<br>
string 'killsol.sh' as an argument. You need to look at what he is asking you to<br>
type more closely.<br>
<br>
ie: $ which killsol.sh<br>
<br>
re: man which<br>
<div><br>
<br>
><br>
><br>
> On Thu, Feb 27, 2014 at 3:52 PM, sean <<a href="mailto:sean.a.ritzler@gmail.com" target="_blank">sean.a.ritzler@gmail.com</a>> wrote:<br>
><br>
>> So, again, what is the output of "which killsol.sh"? A<br>
<br>
</div>HTH<br>
<span><font color="#888888">--<br>
KevinO<br>
</font></span><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>
</div></div></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>
<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>
</div></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>