Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 22 lines (17 sloc) 0.546 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/bin/bash

# Script by Nilesh Govindrajan <me@nileshgr.com>

# Saves cached flash video from any running browsers (that use libflashplayer.so)
# File will be saved as the random string with extension .flv in the current directory.

for p in $(pgrep -f libflashplayer.so -U `id -u`)
do
for f in $(find /proc/$p/fd -type l)
    do
filename=$(readlink $f)
echo $filename | grep /tmp/Flash
if [ $? -eq 0 ]
then
dstfname=$(echo $filename | cut -d' ' -f1 | awk -F/ '{ print $NF }')
cp $f ${dstfname}.flv
fi
done
done
    
Something went wrong with that request. Please try again.