Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Foo Chin — — source: Informix-list mailing list archive (1991-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
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.