Skip to content

Instantly share code, notes, and snippets.

@chadj
Created December 29, 2011 17:47
Show Gist options
  • Save chadj/1535225 to your computer and use it in GitHub Desktop.
Save chadj/1535225 to your computer and use it in GitHub Desktop.
#!/bin/bash
while [ `netstat --listen --numeric-ports | grep ":8000\>" | grep -c .` -gt 0 ]; do
echo "Sleeping"
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment