Copy Flash Movies
From Notes
Want to have your very own copy of some fantastic flash video?
#!/bin/bash
## Fix up TARGET_DIR to send the file wherever you wish
TARGET_DIR=$HOME
for FILE in $(lsof -n|grep .tmp.Flash | awk '{print "/proc/" $2 "/fd/" $4}' | sed 's/.$//'); do
if [ -h $FILE ]; then
cp -v $FILE $(mktemp -u --suffix=.flv --tmpdir=$TARGET_DIR/)
fi
done

