#!/bin/sh # # Test if participants changed, if yes run production of pages # # (c) 2000 J.Bukovy / M.Svoboda STK # cd /www/www-data/elag2001 [ ! -s part_atr_old ] && ls -l particip.csv > part_atr_old # Test if running for the first time. If yes, create part_atr_old # now create part_atr_new ls -l particip.csv > part_atr_new # if unequal, run generation if diff part_atr_new part_atr_old > /dev/null then echo "file attributes unchanged" > /dev/null else # echo "file attributes changed" gen_all.sh fi cat part_atr_new > part_atr_old