#!/bin/sh

echo "access fds"
pids=`ps aux | grep aa | awk '{ print $2 }' | sed \\$d`
for pid in $pids
do
	ls /proc/$pid/fd > /dev/null
	echo "access $pid"
done

echo "loop ps, please kill all aa"
while true
do
	ps > /dev/null
done
