Linux News
The world is talking about GNU/Linux and Free/Open Source Software
Here's a couple of scripts for saving Youtube Flash Videos to your hard drive
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
|
You cannot post until you login.