I'm trying to use netcat to catch kernel printing (netconsole) using
nc -l -u -p 6666.
But when I use this utility in Ubuntu, it immediately exits.
Trying to figure out why, I see that in the manual page it is described that
-p can't be used together.
The next time I tried to execute it as following.
This time I started to get some reply but then it exits.
$ nc -l -u 6666 netconsole: local port 6665 netconsole: local IP 0.0.0.0 netconsole: interface 'eth0' netconsole: remote port 6666 netconsole: remote IP 10.0.0.1 netconsole: remote ethernet address ff:ff:ff:ff:ff:ff netconsole: local IP 10.0.0.2
Then I get back host prompt, as if netcat existed without printing anything more.
Can someone help me figure out what I'm doing wrong ?