Skip to content

Instantly share code, notes, and snippets.

@nisc
Created February 13, 2012 17:13
Show Gist options
  • Save nisc/1818381 to your computer and use it in GitHub Desktop.
Save nisc/1818381 to your computer and use it in GitHub Desktop.
watch flash videos in VLC
#! /usr/bin/env bash
PLAYER='vlc'
lsof -nP -S2 -bw -u $UID|\
awk '/\/tmp\/Flash/ { gsub("[^0-9]","",$4); print "/proc/"$2"/fd/"$4 }'|\
xargs ${PLAYER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment