Here's a couple of scripts for saving Youtube Flash Videos to your hard drive

Posted by tracyanne on Sep 6, 2011 9:04 AM EDT
LXer Linux News; By Tracy Barlow
Mail this story
Print this story

I hope someone finds them useful.

Script1 locateallflashfiles.sh

#!/bin/bash

echo Please wait, searching for recent Flash Video Files

lsof | grep Flash | grep plugin-co > listallflashfiles.txt

while read line

do

./processflashfiles.sh $line

done < listallflashfiles.txt

echo Press any key to close this Terminal

read thekey

Script2 processflashfiles.sh

#!/bin/bash

string1=$4

string2=$9

echo Copying /proc/$2/fd/${string1//u/ } to /home/$3/Videos${string2///tmp/}.flv

cp /proc/$2/fd/${string1//u/ } /home/$3/Videos${string2///tmp/}.flv

  Nav
» Read more about:

« Return to the newswire homepage

Subject Topic Starter Replies Views Last Post
Had drive???? amadensor 7 829 Sep 7, 2011 7:35 PM
I see just two... D 5 938 Sep 6, 2011 8:05 PM
lsof uninstalled ???!! skai 1 729 Sep 6, 2011 1:06 PM

You cannot post until you login.