[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nyphp-talk
Subject:    Re: [nyphp-talk] How To Make "php" show up as "somefile" when running the top command...
From:       Néstor <rotsen () gmail ! com>
Date:       2012-06-21 22:56:57
Message-ID: CAON-vCPYUgb0Uz-vqBj9J_YXTwBGnRRvfiwZKwJVFQEsgHZkbg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Can you find the php executable that you are using and crate an alias
and put it on your .xxxrc file on the bsd system.

O n my linux I put an alias line on my .bashrc file:
alias vim='/usr/sbin/gvim'

I hope this works for you.

Nestor :-)

On Thu, Jun 21, 2012 at 1:59 PM, Darryle Steplight <dsteplight@gmail.com>wrote:

> Hans,
>
> Using  the "ps" command allows me to see "php filename.php" but top
> wouldn't allow me to see the filename, this is what sparked me to
> think about changing "php" to something more specific.  I don't know
> why I didn't try "ps"  at first.
>
> A little birdy told me that  symlinking to the PHP binary will allow
> you to change "php" to whatever you use in your symlink. Makes sense
> to me, but using ps will suffice for now.
>
> On Thu, Jun 21, 2012 at 4:52 PM, Hans Zaunere <bulk@zaunere.com> wrote:
> >>     When I run any php file from the command line it shows up at
> >> "php" under the COMMAND column on my Mac. I'm not running this on a
> >> server right now, just locally.
> >
> > Oh, Mac...
> >
> > In theory there's BSD under there somewhere, but I don't know what
> > they've done to it.  I'd imagine the COMMAND column in Mac pulls from
> > ps or top but it's hard to say.  You could drop to command line and
> > try top/ps to at first know if the process name is being changed as
> > far as the OS sees it.  Then the Mac GUI is another question :)
> >
> > H
> > _______________________________________________
> > New York PHP User Group Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > http://www.nyphp.org/show-participation
>
>
>
> --
> ----------------------------------------------
> "May the Source be with you."
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show-participation
>

[Attachment #5 (text/html)]

Can you find the php executable that you are using and crate an alias<br>and put it \
on your .xxxrc file on the bsd system.<br><br>O n my linux I put an alias line on my \
.bashrc file:<br>alias vim=&#39;/usr/sbin/gvim&#39; <br> <br>I hope this works for \
you.<br><br>Nestor :-)<br><br><div class="gmail_quote">On Thu, Jun 21, 2012 at 1:59 \
PM, Darryle Steplight <span dir="ltr">&lt;<a href="mailto:dsteplight@gmail.com" \
target="_blank">dsteplight@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hans,<br> <br>
Using  the &quot;ps&quot; command allows me to see &quot;php filename.php&quot; but \
top<br> wouldn&#39;t allow me to see the filename, this is what sparked me to<br>
think about changing &quot;php&quot; to something more specific.  I don&#39;t \
know<br> why I didn&#39;t try &quot;ps&quot;  at first.<br>
<br>
A little birdy told me that  symlinking to the PHP binary will allow<br>
you to change &quot;php&quot; to whatever you use in your symlink. Makes sense<br>
to me, but using ps will suffice for now.<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Jun 21, 2012 at 4:52 PM, Hans Zaunere &lt;<a \
href="mailto:bulk@zaunere.com">bulk@zaunere.com</a>&gt; wrote:<br> &gt;&gt;     When \
I run any php file from the command line it shows up at<br> &gt;&gt; &quot;php&quot; \
under the COMMAND column on my Mac. I&#39;m not running this on a<br> &gt;&gt; server \
right now, just locally.<br> &gt;<br>
&gt; Oh, Mac...<br>
&gt;<br>
&gt; In theory there&#39;s BSD under there somewhere, but I don&#39;t know what<br>
&gt; they&#39;ve done to it.  I&#39;d imagine the COMMAND column in Mac pulls \
from<br> &gt; ps or top but it&#39;s hard to say.  You could drop to command line \
and<br> &gt; try top/ps to at first know if the process name is being changed as<br>
&gt; far as the OS sees it.  Then the Mac GUI is another question :)<br>
&gt;<br>
&gt; H<br>
&gt; _______________________________________________<br>
&gt; New York PHP User Group Community Talk Mailing List<br>
&gt; <a href="http://lists.nyphp.org/mailman/listinfo/talk" \
target="_blank">http://lists.nyphp.org/mailman/listinfo/talk</a><br> &gt;<br>
&gt; <a href="http://www.nyphp.org/show-participation" \
target="_blank">http://www.nyphp.org/show-participation</a><br> <br>
<br>
<br>
</div></div><div class="im HOEnZb">--<br>
----------------------------------------------<br>
&quot;May the Source be with you.&quot;<br>
</div><div class="HOEnZb"><div \
class="h5">_______________________________________________<br> New York PHP User \
Group Community Talk Mailing List<br> <a \
href="http://lists.nyphp.org/mailman/listinfo/talk" \
target="_blank">http://lists.nyphp.org/mailman/listinfo/talk</a><br> <br>
<a href="http://www.nyphp.org/show-participation" \
target="_blank">http://www.nyphp.org/show-participation</a><br> \
</div></div></blockquote></div><br>



_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/show-participation

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic