Skip to content

Instantly share code, notes, and snippets.

@Fardinak
Last active December 31, 2015 07:49
Show Gist options
  • Save Fardinak/7956246 to your computer and use it in GitHub Desktop.
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.
#!/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