emulab/mail/count_delivery.sh
changeset 0 2b3e5ec03512
equal deleted inserted replaced
-1:000000000000 0:2b3e5ec03512
       
     1 #!/bin/sh
       
     2 
       
     3 F=/tmp/delivery_count
       
     4 
       
     5 if [ ! -f $F ] ; then
       
     6     echo "1" > $F
       
     7 else
       
     8     i=`cat $F`
       
     9     i=$(($i+1))
       
    10     echo $i > $F
       
    11 fi