[ create a new paste ] login | about

Link: http://codepad.org/79mN9ogx    [ raw code | fork ]

Plain Text, pasted on Jun 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

FLASHPID=$( ps axo "%p %c %a" | grep [f]lashplayer | awk '{ print $1; }' )
if [ -z "$FLASHPID" ]
then
	echo "Flash not found."
	exit
fi
for i in /proc/$FLASHPID/fd/*
do
	ACTFILE=$( readlink -f $i )
	if [ -n "$( echo $ACTFILE | grep "(deleted)" )" ]
	then
	    cp $i "$1"
	    exit
	fi
done



Create a new paste based on this one


Comments: