NYCPHP Meetup

NYPHP.org

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

Hans Zaunere bulk at zaunere.com
Thu Jun 21 16:42:36 EDT 2012


>     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



More information about the talk mailing list