Created
December 18, 2016 16:45
-
-
Save mugifly/197707c28115048e72c5d82ab245aaf9 to your computer and use it in GitHub Desktop.
Netconsole capturing script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ip=` ip --oneline --family inet address show dev wlp8s0 | cut -d' ' -f7 | cut -d '/' -f1` | |
echo "-- Watching on ${ip}:6666 --" | |
nc -u -l -p 6666 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment