Re: I need help with ontape
Posted in 1998
Yet another suggestion for an ontape backround (cron) script from
someone who haven't read the faq on this.
Do read the faq first for explanations on why this script may cause
problems and how to avoide that very easily.
Another thing: It isn't necessary to go to quiesent mode to do a
backup. May be there are good reasons to do it if you can afford it,
but we don't and can't.
On Tue, 07 Apr 1998 13:06:03 -0600, Ed Bidinotto
<eb06709@po1.cobe.com> wrote:
>Paul Cornett wrote:
>>
>> I have a AIX box running 4.2.1 with Informix 7.23.uc1. I am trying to
>> automate ontape by piping a carriage return to ontape.... ontape refuses to
>> see the carriage return... anyone have any clues?
>>
>> Thanks
>> Paul cornett
>> doctorx@kdsi.net
>> Clow Valve Company
>
>
>try this..
>create a script called backup.sh with your ontape command
>
>ex:
>
>#!/bin/ksh
>export ONCONFIG=
>export INFORMIXSERVER=
>export INFORMIXDIR=
>
>/usr/informix/bin/onmode -uy ** quiescent mode
>sleep 4
>/usr/informix/bin/ontape -s -L 0
>/usr/informix/bin/onmode -m
>
>
>
>and then run another script called backup2.sh against it like this.
>
>
>/admin/backup2.sh <<!
>
>
>!
>
>that should put the carriage returns in to answer the prompt
>
>Good luck
>Ed
Nils Myklebust
NM Data AS
Norway
E-mail: Nils.Myklebust@nmdata.com
FAQ at: Primary with ODBC info: http://www.smooth1.demon.co.uk
Official site http://www.iiug.org/techinfo/faq/faq_top.html