#! /bin/sh
cd /var/alternc/html/e/ecosociete/stats/sigs
for graph in signature lettre_au_ministre
do
mysql --defaults-file=/etc/alternc/my.cnf -BN -e 'set @t1=0; select @t1:=(@t1+1),nid,FROM_UNIXTIME(`created`) + 0 from node where type="'$graph'" order by created ASC;' ecosociete_drupal > slapp_${graph}_in_time
done
gnuplot <