Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • are you running this from the terminal, or is this script in a file that you're clicking on? additionally, the command is "netstat", not "netstate-a". Commented Nov 20, 2016 at 4:09
  • Ditto — exactly how are you running this script?  See if you can describe the sequence of events more clearly.  What happens if you run a script with just one command in it?  What if you create a script file with  no commands, and run that? Commented Nov 20, 2016 at 6:20