Re: I need help with ontape
Posted in 1998
Ed Bidinotto — — source: Informix-list mailing list archive (1991-1998)
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