How would I use grep to look for all of the active php processes?
ps -ax ... <?>
Thanks,
- Don
grep for 'php' in processes
Moderator: General Moderators
- DaveTheAve
- Forum Contributor
- Posts: 385
- Joined: Tue Oct 03, 2006 2:25 pm
- Location: 127.0.0.1
- Contact:
I don't know the binary for your php or if ps outputs the script instead; however, this might work:
might want to try this if your run php5 and the above don't work:
if nether work try a normal ps-A and see if you can find how it outputs your php binary.
Code: Select all
ps -A | grep phpCode: Select all
ps -A | grep php5if nether work try a normal ps-A and see if you can find how it outputs your php binary.
Code: Select all
pgrep phpThere are 10 types of people in this world, those who understand binary and those who don't