Re: Another ontape question
Posted in 1998
Topics: Backup & Restore
<HTML>
Hey,
<BR>the following lines are part of an original scritps from Informix.
And they operate finely.
<BR>.
<BR>.
<BR>echo "
<BR>" | /usr/informix/bin/ontape -c&
<BR>.
<BR>.
<BR>echo "
<BR>y
<BR>n
<BR>n" | /usr/informix/bin/ontape -p&
<BR>.
<BR>.
<BR>
<BR>
<P>Ants wrote:
<BLOCKQUOTE TYPE=CITE>First you have to put the informix environment variables
in your script. e.g
<BR>INFORMIXDIR and so on.
<P>For the ENTER, you may do the following:
<P>ontape (your parameters e.g -L 0) << EOF
<BR> #empty line
<BR>EOF
<P>This will treat whatever between the two labels EOFs as if you are typing
it
<BR>on the command line.
<P>HTH
<P>Nien
<BR>-----Original Message-----
<BR>From: cjw@yang.interaccess.com <cjw@yang.interaccess.com>
<BR>To: insight@shabakah.com <insight@shabakah.com>
<BR>Date: Wednesday, June 24, 1998 09:23 ã
<BR>Subject: Another ontape question
<P>>Hello there--
<BR>>
<BR>> I am trying to put this ontape command into a script which
<BR>>will run unattended. How can I get around ontape prompting me to press
<BR>>the return key?
<BR>>
<BR>> I have tried echoing a CR and piping it to ontape, and tried
<BR>>redirecting the standard input from a file with just a CR in it. They
<BR>>do not work.
<BR>>
<BR>> cjw
<BR>>
<BR>>Christopher J. Wargaski; cjw@interaccess.com
<BR>>"We can judge the heart of a man by his treatment of animals." --Immanuel
<BR>Kant
<BR>>
<BR>>Life is sexually transmitted.</BLOCKQUOTE>
</HTML>