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.

4
  • Exactly, so whenever a notification arrives it should be printed in terminal without the need to manually restart command.
    – S4M11R
    Commented Mar 7, 2016 at 10:11
  • 1
    Does this work: while true; do nc -l -p 999; done
    – dreamlax
    Commented Mar 7, 2016 at 10:13
  • I get a syntax error sudo while true; do nc -l -p 999; done bash: syntax error near unexpected token `do'
    – S4M11R
    Commented Mar 7, 2016 at 10:15
  • If you want to use it with sudo, you have to use sudo sh -c 'while true; do nc -l -p 999; done'
    – dreamlax
    Commented Mar 7, 2016 at 10:20