thanks alot buddy
it worked in that script but couldnt get it right in this one..its similar to first but for differect activity
#!/bin/bash
fid=$1
email=$2
if [ -z ${email} ] || [ ! -e ./cookies/${email} ]
then
echo "You need to specify a logged in email address"
echo "that person must be already supporting the fight"
echo
exit
fi
while [ 1 ]
do
curl -s -b ./cookies/$email -A "Mozilla/5.0" "http://apps.facebook.com/fightersc/details?fid=${fid}&hit=1" | sed -n "s/.*opponent\" value=\"\([0-9]*\)\" .*/\1/p" | while read i; do
echo "Got one! beating the shit out of ${i}"
curl -s -I -b ./cookies/$email -A "Mozilla/5.0" "http://apps.facebook.com/fightersc/details?fid=${fid}&hit=1&emoticon=119&opponent=${i}&versailles=hit+opponent" > /dev/null&
curl -s -I -b ./cookies/$email -A "Mozilla/5.0" "http://apps.facebook.com/fightersc/details?fid=${fid}&hit=1&emoticon=119&opponent=${i}&versailles=hit+opponent" > /dev/null&
done
done