Skip to content

Instantly share code, notes, and snippets.

@alexmoleiro
Created July 13, 2015 18:06
Show Gist options
  • Select an option

  • Save alexmoleiro/1771ae2ecdbb7612964e to your computer and use it in GitHub Desktop.

Select an option

Save alexmoleiro/1771ae2ecdbb7612964e to your computer and use it in GitHub Desktop.
Ip conectadas a mi server
private function setStrIPsConectadas(){
echo $this->ipConectadasStr= shell_exec("netstat -atun | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment