Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: afadaghi
Posted By ctsgnb
Try this : ps -ef | grep [h]ttpd | sed...
Try this :

ps -ef | grep [h]ttpd | sed 's:^[^/]*::;s: .*::'

ps -ef | sed '/[h]ttpd/!d;s:^[^/]*::;s: .*::'

Note :
[h]ttpdi instead of just httpd is a tip to avoid the "grep -v grep"...
Showing results 1 to 1 of 1


Featured Tech Videos

All times are GMT -4. The time now is 05:21 AM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy