Last active
December 31, 2015 07:49
-
-
Save Fardinak/7956246 to your computer and use it in GitHub Desktop.
Copy fully played online videos from services that use flash players.Run commands as root.
This file contains hidden or 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 | |
STORAGE=/home/$USER/Downloads; | |
# Get Process ID | |
PROCID=$(pgrep -f flash); | |
# Change current directory to | |
cd /proc/$PROCID/fd; | |
# Get file names | |
ls -l | grep Flash | grep deleted; | |
# TODO: Automate the rest of the process as well | |
# Run these per file | |
#cp $FILENAME $STORAGE/$FILENAME.flv; | |
#chown $USER:$USER $STORAGE/$FILENAME.flv; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment