BEGIN{ print "cp /gglogs/logs/*.gz /tmp/logs/ 2> /tmp/hist_cp_err" print "gzip -d /tmp/logs/* 2> /tmp/hist_gzip_err" print "rm /tmp/logs/stats/*;" print "ls -al /tmp/logs|gawk '{suma=suma+$5}END{print suma}' > /tmp/logs/stats/razem_logi;" } { print "/skrypty/ekg/historia/ekglog.pl -m 548307 -y piio /tmp/logs/"$1" > /logi/"$1".htm 2> /tmp/hist_"$1"_error;" print "grep -v 'Argument' /tmp/"%1" > /tmp/hist_"%1"_err" print "echo \\ > /logi/"$1"_stats.html;" print "echo \\Statystyki numerku\: \\"$1"\\<\\/b\\>\\<\\/center\\> > /logi/"$1"_stats.html;" print "echo \\ >> /logi/"$1"_stats.html;" print "echo \\msg wyslane\:\\ >> /logi/"$1"_stats.html;" print "grep -c 'msgsend' /tmp/logs/"$1" >> /logi/"$1"_stats.html;" print "grep -c 'msgsend' /tmp/logs/"$1" >> /tmp/logs/stats/all_msgsend.txt;" print "echo \\\\msg odbrane\\<\\/b\\> >> /logi/"$1"_stats.html;" print "grep -c 'msgrecv' /tmp/logs/"$1" >> /logi/"$1"_stats.html;" print "grep -c 'msgrecv' /tmp/logs/"$1" >> /tmp/logs/stats/all_msgrecv.txt;" print "echo \\\\chat wyslane\\<\\/b\\> >> /logi/"$1"_stats.html;" print "grep -c 'chatsend' /tmp/logs/"$1" >> /logi/"$1"_stats.html;" print "grep -c 'chatsend' /tmp/logs/"$1" >> /tmp/logs/stats/all_chatsend.txt;" print "echo \\\\chat odebrane\\<\\/b\\> >> /logi/"$1"_stats.html;" print "grep -c 'chatrecv' /tmp/logs/"$1" >> /logi/"$1"_stats.html;" print "grep -c 'chatrecv' /tmp/logs/"$1" >> /tmp/logs/stats/all_chatrecv.txt;" print "echo \\\\status zmieniony na dostepny\\<\\/b\\> >> /logi/"$1"_stats.html;" print "grep -c ',avail' /tmp/logs/"$1" >> /logi/"$1"_stats.html;" print "grep -c ',avail' /tmp/logs/"$1" >> /tmp/logs/stats/all_avail.txt;" print "echo \\\\status zmieniony na niedostepny\\<\\/b\\> >> /logi/"$1"_stats.html;" print "grep -c ',notavail' /tmp/logs/"$1" >> /logi/"$1"_stats.html;" print "grep -c ',notavail' /tmp/logs/"$1" >> /tmp/logs/stats/all_notavail.txt;" print "echo \\\\status zmieniony na zajety\\<\\/b\\> >> /logi/"$1"_stats.html;" print "grep -c ',busy' /tmp/logs/"$1" >> /logi/"$1"_stats.html;" print "grep -c ',busy' /tmp/logs/"$1" >> /tmp/logs/stats/all_away.txt;" print "echo \\<\\/html\\> >> /piio.risp.pl/logi/"$1"_stats.html;" } END{ print "rm /tmp/logs/*" print "rm /tmp/*_error" }