User Tools

Site Tools


1c-log-vacuum

1c-log-vacuum.sh
#!/bin/sh
#
# $Id$
#
ONECHOME=/home/usr1cv8/.1cv8/1C/1cv8/reg_1541
ONECTMP1=/data/tmp
ONECTMP2=/tmp
 
/etc/init.d/srv1cv83 stop
 
find $ONECHOME -name '1Cv8.lgd' -print0 \
    | xargs -0 -n1 -i@ echo sqlite3 @ 'vacuum;'
 
/etc/init.d/srv1cv83 start
 
find $ONECTMP1 -name '*.lgd' -delete
find $ONECTMP2 -name '*.lgd' -delete
#EOF

Back to overviewNext PageLast Page