[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Resource consumption.



Hi,

OK sorry I found the answer.
Next time I'll try harder before I bother you.

I found out about the `wait` command in Bash scripting.
I'll try something like:

# do webalizer
for i in /var/log/apache/access_tmp/*-access_log; do
   site=`echo $i | sed 's/\/var\/log\/apache\/access_tmp\///'`
   site=`echo $site | sed 's/-access_log//'`
   if [ -e /etc/webalizer/$site.webalizer.conf ];
    then
        webalizer -D /var/log/webazolver/dns_cache.db -c \
/etc/webalizer/$site.webalizer.conf;

    WEB_PID=$!;
    wait $WEB_PID;
    fi
done
 
Cheers
Rudi.





Reply to: