Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lsof -iTCP -sTCP:LISTEN | grep $(ps -e | grep mongod | tr -s ' ' | xargs echo -n | cut -d ' ' -f 1) | tr -s ' ' | xargs echo -n | cut -d ' ' -f 9 | cut -d ':' -f 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement