NYCPHP Meetup

NYPHP.org

[nycphp-talk] How To Make "php" show up as "somefile" when running the top command...

Darryle Steplight dsteplight at gmail.com
Thu Jun 21 16:49:28 EDT 2012


Hi Hans,
     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.

On Thu, Jun 21, 2012 at 4:42 PM, Hans Zaunere <bulk at zaunere.com> wrote:
>>     How do i get my PHP file running from the command line to show up
>> as "SOMENAME" when I execute the top command from the terminal? Right
>> now it will show up as "php" but I want to be able to distinguish it
>> from other php  files that may be running. I've seen this done once so
>> I know it's possible. I'm not sure if this is the right list to ask
>> but I thought it would be worth a shot.
>
> proctitle pecl extension is probably what you want, though read this:
>
> https://bugs.php.net/bug.php?id=29479
>
> Though in any case, running php yourscript.php should show up as it's
> called in top/ps.
>
> 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."



More information about the talk mailing list