RE: Script Parameter Passed to Ontape Restore script
Posted in 1999
Topics: Backup & Restore
Does this also automatically swap tapes when the ontape process overflows to
more than one tape.? This feature will relieve the backup operator from
having to swap tapes.
Uday
-----Original Message-----
From: Art S. Kagel [mailto:kagel@bloomberg.net]
Sent: Monday, November 01, 1999 9:33 AM
To: informix-list@iiug.org
Subject: Re: Script Parameter Passed to Ontape Restore script
jhimschoot@CroweChizek.Com wrote:
>
> Can anyone tell me the command to pass a parameter to "ontape -r" in a
> batch script? I have been trying the following command, echo "y\\n"|ontape
> -r >> ${LOGFILE}, but the y and n do not get passed. I can be reached a
ontape wants a tty to talk to. On some systems this means that piping in
input does not work. On many systems a 'here script' will work instead:
ontape -r <<EOF >> ${LOGFILEy
y
EOF
No. You would have to write a program to run ontape as a pipe and use
some function like 'expect' (such a function is included in utils3_ak)
to take the prompt and message an operator somehow to change the tape,
or if you have a changer to change tapes automatically, then, once you
know the tape has been changed (perhaps make the operator click a box
in a window) reply to ontape.
Art S. Kagel
"Marichamy, Udaykumar" wrote:
>
> Does this also automatically swap tapes when the ontape process overflows to
> more than one tape.? This feature will relieve the backup operator from
> having to swap tapes.
>
> Uday
>
> -----Original Message-----
> From: Art S. Kagel [mailto:kagel@bloomberg.net]
> Sent: Monday, November 01, 1999 9:33 AM
> To: informix-list@iiug.org
> Subject: Re: Script Parameter Passed to Ontape Restore script
>
> jhimschoot@CroweChizek.Com wrote:
> >
> > Can anyone tell me the command to pass a parameter to "ontape -r" in a
> > batch script? I have been trying the following command, echo "y\\n"|ontape
> > -r >> ${LOGFILE}, but the y and n do not get passed. I can be reached a
>
> ontape wants a tty to talk to. On some systems this means that piping in
> input does not work. On many systems a 'here script' will work instead:
>
> ontape -r <<EOF >> ${LOGFILE> y
> y
> EOF