Skip to content

Instantly share code, notes, and snippets.

@Donearm
Created March 15, 2011 11:17
Show Gist options
  • Save Donearm/870604 to your computer and use it in GitHub Desktop.
Save Donearm/870604 to your computer and use it in GitHub Desktop.
Save flash video from memory
#!/bin/bash
FLASHPIDS=$(pidof plugin-container)
for p in $FLASHPIDS; do
cp -b "/proc/$p/fd/"$(ls -l /proc/$p/fd | grep Flash | awk '{print $9}') ~/vid-$p.mp4
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment