Timeline for Continuously listen to tcp port via terminal
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 26, 2017 at 19:29 | answer | added | Nico Villanueva | timeline score: 42 | |
Mar 10, 2016 at 12:34 | vote | accept | S4M11R | ||
Mar 7, 2016 at 10:20 | comment | added | dreamlax |
If you want to use it with sudo , you have to use sudo sh -c 'while true; do nc -l -p 999; done'
|
|
Mar 7, 2016 at 10:20 | answer | added | S4M11R | timeline score: 6 | |
Mar 7, 2016 at 10:15 | comment | added | S4M11R | I get a syntax error sudo while true; do nc -l -p 999; done bash: syntax error near unexpected token `do' | |
Mar 7, 2016 at 10:13 | comment | added | dreamlax |
Does this work: while true; do nc -l -p 999; done
|
|
Mar 7, 2016 at 10:11 | comment | added | S4M11R | Exactly, so whenever a notification arrives it should be printed in terminal without the need to manually restart command. | |
Mar 7, 2016 at 10:08 | history | asked | S4M11R | CC BY-SA 3.0 |