Skip to content

Instantly share code, notes, and snippets.

@mugifly
Created December 18, 2016 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mugifly/197707c28115048e72c5d82ab245aaf9 to your computer and use it in GitHub Desktop.
Save mugifly/197707c28115048e72c5d82ab245aaf9 to your computer and use it in GitHub Desktop.
Netconsole capturing script
#!/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