SHARE
TWEET

Untitled

a guest Nov 9th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. exec 2> /dev/null
  4. ans=$(netstat -tulpn | grep 8005 | wc -l 2> /dev/null)
  5. if [[ "$ans" == "1" ]];
  6. then
  7.   echo "Congradulation! Moloch should now be running on localhost:8005."
  8. else
  9.   echo "Moloch does not seems to be running...Check the status using 'systemctl status molochviewer.service'"
  10. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top