Created
March 15, 2011 11:17
-
-
Save Donearm/870604 to your computer and use it in GitHub Desktop.
Save flash video from memory
This file contains 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 | |
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