Automatic Clearing of Logical Logs
Posted in 1998
Hi,
I would like to donate this script for the automatic clearing of logical
logs for IDS on solaris using a cron job.
#!/sbin/sh
#
# Feel free to port it for use on other Sun servers
# Best run under Bourne shell
# Under Solaris 2.5.1
# For Informix
# Coded By swod (swod@silkroute.com)
# Last modified: 10 Sept 1998 at 1020 hrs
#
# This piece of code is used for clearing the logical logs automatically
# For use in cron jobs.
INFORMIXDIR=/opt/informix export INFORMIXDIR
ONCONFIG=onconfig.tourism export ONCONFIG
INFORMIXSERVER=tourism_online export INFORMIXSERVER
DBCENTURY=C
export DBCENTURY
cd /opt/informix/bin
# The follwing lines automatically run the clearlogs script
echo "\\ny\\n" | ./ontape -a
echo "\\ny\\n" | ./ontape -a
echo "\\ny\\n" | ./ontape -a
echo "\\ny\\n" | ./ontape -a
echo "\\ny\\n" | ./ontape -a
echo "\\ny\\n" | ./ontape -a
# End of script
Swod