Thursday, August 16, 2007

my elapsed indicator

#biar kaga bengong
starttime=`date +%s`
while [ `ps -ef | grep 'Volcomp' | grep -v 'grep'| wc -l` -ne 0 ];do
now=`date +%s`
selisih=`expr $now - $starttime`
clear
echo "lagi jalanin volcomp ..`date -d "1970-01-01 $selisih sec" +%T`"
sleep 1
done

0 Comment :