#!/bin/csh
set j_num=0
set h="none"
while ( $j_num < 1000 )
echo "bsub -Is -q RDX_Signoff_PT -n 1 -R 'hname!=$h' -R 'span[hosts=1]' 'ls -ld /tmp/* | grep username > /home/username/1 ; hostname > /home/username/2 '"
eval "bsub -Is -q RDX_Signoff_PT -n 1 -R 'hname!=$h' -R 'span[hosts=1]' 'ls -ld /tmp/* | grep username > /home/username/1 ; hostname > /home/username/2 '"
set h=`cat /home/username/2`
awk '{print "\\rm -rf "$9}' /home/username/1 > /home/username/1.1
chmod u+x /home/username/1.1
echo "clean $h "
echo "bsub -Is -q RDX_Signoff_PT -n 1 -R 'span[hosts=1]' -m $h 'source /home/username/1.1'"
eval "bsub -Is -q RDX_Signoff_PT -n 1 -R 'span[hosts=1]' -m $h 'source /home/username/1.1'"
set j_num=`expr $j_num + 1`
echo $j_num
sleep 60
end
|