<p>So, again, what is the output of "which killsol.sh"? Also do you have a .bashrc? If not try renaming your .profile to .bashrc.</p>
<div class="gmail_quote">On Feb 27, 2014 3:48 PM, "Dazed_75" <<a href="mailto:lthielster@gmail.com">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"><div><div>Sean, when it is not working (I have not run .profile manually), it prints killsol.sh: command not found as expected. When I have run .profile manually, it executes properly and the is no cli output as I designed.<br>
<br></div>james, i get /bin/bash as my shell<br><br></div>kitepilot, I get bash<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 1:36 PM, <span dir="ltr"><<a href="mailto:kitepilot@kitepilot.com" target="_blank">kitepilot@kitepilot.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Or:<br>
echo $0<br>
ET <br><div><div>
<br>
James Mcphee writes: <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
dash uses /etc/profile, ~/.profile, and $ENV (if available). grep your<br>
username from /etc/passwd to find your shell. <br>
<br>
On Thu, Feb 27, 2014 at 12:04 PM, sean <<a href="mailto:sean.a.ritzler@gmail.com" target="_blank">sean.a.ritzler@gmail.com</a>> wrote: <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No, we want the output of : <br>
which killsol.sh <br>
"which" tells you where "killsol.sh" is in your path. <br>
And by "doesn't work" I mean when it is apparently not found in your<br>
path. I want to see what "which" says when your shell does not run<br>
"killsol.sh" by itself. <br>
On Thu, Feb 27, 2014 at 11:59 AM, Dazed_75 <<a href="mailto:lthielster@gmail.com" target="_blank">lthielster@gmail.com</a>> wrote:<br>
> Sean, there is no output from killsol.sh. It either kills the desired<br>
> process or does nothing. And it DOES work when it actually gets run.<br>
><br>
> Nathan, .profile actually checks to see if the is a .bashrc and if so,<br>
runs<br>
> it so putting in what you suggest would create an infinite loop. BUT,<br>
you<br>
> gave me a clue. I think ubuntu actually uses dash for the login shell<br>
> though bash is the default user shell. THAT may be why .profile does not<br>
> get run for the login shell.<br>
><br>
><br>
> On Thu, Feb 27, 2014 at 10:49 AM, Nathan England <<a href="mailto:plug-discuss@nmecs.com" target="_blank">plug-discuss@nmecs.com</a><br>
><br>
> wrote:<br>
>><br>
>><br>
>> I know different shells source different files when started, I'm curious<br>
>> to know which shell you are using.<br>
>> (konsole, gnome-terminal, ...)<br>
>><br>
>> If it works after sourcing your .profile then I would bet you need to<br>
have<br>
>> a .bashrc file with a line that says source ~/.profile.<br>
>><br>
>> Like Kitepilot, I too am curious to know what<br>
>><br>
>> which foo.sh<br>
>> or<br>
>> whereis foo.sh<br>
>><br>
>> tells us.<br>
>><br>
>><br>
>><br>
>> On 2/27/2014 8:24 AM, Dazed_75 wrote:<br>
>><br>
>> Prior to mu sourcing .profile, those commands showed nothing. Once I<br>
ran<br>
>> . .profile, I get what I expected:<br>
>><br>
>> larry@hammerhead:~$ which killsol.sh<br>
>> /home/larry/bin/killsol.sh<br>
>> larry@hammerhead:~$ type killsol.sh<br>
>> killsol.sh is /home/larry/bin/killsol.sh<br>
>> larry@hammerhead:~$<br>
>><br>
>> so the question really comes down to why is .profile not being run on<br>
>> login (I already said I do not have the two files which might prevent<br>
it).<br>
>> This is Ubuntu 12.04 BTW.<br>
>><br>
>><br>
>><br>
>> On Thu, Feb 27, 2014 at 6:50 AM, <<a href="mailto:kitepilot@kitepilot.com" target="_blank">kitepilot@kitepilot.com</a>> wrote:<br>
>>><br>
>>> Pls show the output of:<br>
>>> which foo.sh<br>
>>> or<br>
>>> type foo.sh<br>
>>> ET<br>
>>><br>
>>><br>
>>> Dazed_75 writes:<br>
>>>><br>
>>>> I thought $PATH contained the series of paths searched to find an<br>
>>>> executable file by the name specified on the command line.<br>
Specifically<br>
>>>> if<br>
>>>> my $ENV contains a $PATH which reads:<br>
>>>> /home/larry/bin:<more paths><br>
>>>> that an executable file like foo.sh found in /home/larry/bin/ could be<br>
>>>> run<br>
>>>> by simply typing foo.sh on the command line. What am I doing wrong as<br>
>>>> it<br>
>>>> does not work though it does if I type ./bin/foo.sh while in<br>
>>>> /home/larry/?<br>
>>>> --<br>
>>>> Dazed_75 a.k.a. Larry<br>
>>>> Please protect my address like I protect yours. When sending messages<br>
to<br>
>>>> multiple recipients, use the BCC: (Blind carbon copy). Remove<br>
addresses<br>
>>>> from a forwarded message body before clicking Send.<br>
>>><br>
>>> ------------------------------<u></u>---------------------<br>
>>> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>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/<u></u>mailman/listinfo/plug-discuss</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Dazed_75 a.k.a. Larry<br>
>><br>
>> Please protect my address like I protect yours. When sending messages to<br>
>> multiple recipients, use the BCC: (Blind carbon copy). Remove addresses<br>
from<br>
>> a forwarded message body before clicking Send.<br>
>><br>
>><br>
>> ------------------------------<u></u>---------------------<br>
>> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>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/<u></u>mailman/listinfo/plug-discuss</a><br>
>><br>
>><br>
>> ------------------------------<u></u>---------------------<br>
>> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>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/<u></u>mailman/listinfo/plug-discuss</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Dazed_75 a.k.a. Larry<br>
><br>
> Please protect my address like I protect yours. When sending messages to<br>
> multiple recipients, use the BCC: (Blind carbon copy). Remove addresses<br>
from<br>
> a forwarded message body before clicking Send.<br>
><br>
> ------------------------------<u></u>---------------------<br>
> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>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/<u></u>mailman/listinfo/plug-discuss</a><br>
------------------------------<u></u>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>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/<u></u>mailman/listinfo/plug-discuss</a> <br>
</blockquote>
<br>
<br>
-- <br>
James McPhee<br>
<a href="mailto:jmcphe@gmail.com" target="_blank">jmcphe@gmail.com</a><br>
</blockquote>
------------------------------<u></u>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>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/<u></u>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">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>