<div dir="ltr"><div>Sean, there is no output from killsol.sh.  It either kills the desired process or does nothing.  And it DOES work when it actually gets run.<br><br></div>Nathan, .profile actually checks to see if the is a .bashrc and if so, runs it so putting in what you suggest would create an infinite loop.  BUT, you gave me a clue.  I think ubuntu actually uses dash for the login shell though bash is the default user shell.  THAT may be why .profile does not get run for the login shell.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 10:49 AM, Nathan England <span dir="ltr"><<a href="mailto:plug-discuss@nmecs.com" target="_blank">plug-discuss@nmecs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <br>
    I know different shells source different files when started, I'm
    curious 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 have 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.<div><div class="h5"><br>
    <br>
    <br>
    <div>On 2/27/2014 8:24 AM, Dazed_75 wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>Prior to mu sourcing .profile, those commands showed
          nothing.  Once I ran . .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>
        </div>
        so the question really comes down to why is .profile not being
        run on login (I already said I do not have the two files which
        might prevent it).  This is Ubuntu 12.04 BTW.<br>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Thu, Feb 27, 2014 at 6:50 AM, <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">Pls show
            the output of:<br>
            which foo.sh<br>
            or<br>
            type foo.sh<br>
            ET <br>
            <div>
              <div>
                <br>
                <br>
                Dazed_75 writes: <br>
                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  I thought $PATH contained the series of paths searched
                  to find an<br>
                  executable file by the name specified on the command
                  line.  Specifically 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 run<br>
                  by simply typing foo.sh on the command line.  What am
                  I doing wrong as it<br>
                  does not work though it does if I type ./bin/foo.sh
                  while in /home/larry/? <br>
                  -- <br>
                  Dazed_75 a.k.a. Larry <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 a forwarded message body before clicking Send.<br>
                </blockquote>
              </div>
            </div>
            <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>
      <fieldset></fieldset>
      <br>
      <pre>---------------------------------------------------
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a>
To subscribe, unsubscribe, or to change your mail settings:
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></pre>
    </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"><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>