How can i take the output of this command…
ps -ef | grep ^apache | grep /sbin/httpd | awk '{print $2}'
16779
16783
16784
16785
16786
16787
16788
16789
16790
16794
16795
16796
16797
16799
16800
16801
16802
16803
16804
16805
…so a single column of numbers… and transform those numbers into a single line of numbers separated by a ” -p “… This would be used for the following…
lsof -p 16779 -p 16783 -p 16784 ...
Pipe into