commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Testing in a TTY terminal , not emulator .
shell loop to scan netstat output avoiding loolback aliases (local/remote swap for local connections)
works in /bin/bash
This will clear the current playlist.
Almost exactly same command can be used with xmms2:
xmms2 clear && xmms2 add http://twit.am:80/listen && xmms2 play
See smbstatus Output within a 5 second interval (for monitoring smb access)