Re: Another ontape question
Posted in 1998
First you have to put the informix environment variables in your script. e.g
INFORMIXDIR and so on.
For the ENTER, you may do the following:
ontape (your parameters e.g -L 0) << EOF
#empty line
EOF
This will treat whatever between the two labels EOFs as if you are typing it
on the command line.
HTH
Nien
-----Original Message-----
From: cjw@yang.interaccess.com <cjw@yang.interaccess.com>
To: insight@shabakah.com <insight@shabakah.com>
Date: Wednesday, June 24, 1998 09:23 '
Subject: Another ontape question
>Hello there--
>
> I am trying to put this ontape command into a script which
>will run unattended. How can I get around ontape prompting me to press
>the return key?
>
> I have tried echoing a CR and piping it to ontape, and tried
>redirecting the standard input from a file with just a CR in it. They
>do not work.
>
> cjw
>
>Christopher J. Wargaski; cjw@interaccess.com
>"We can judge the heart of a man by his treatment of animals." --Immanuel
Kant
>
>Life is sexually transmitted.