Re: Script Parameter Passed to Ontape Restore script
Posted in 1999
Thanks for the valuable info. I have created, and executed a file with the
commands that you suggested. The restore begins, and the first two
parameters are passed. However, I cannot seem to pass a "n" to the
remaining questions which will all be answered no. How do I pass an "n"?
I cannot get past the "Do you want to backup...logs...(y/n)" question. The
script looks like:
ontape -r <<EOF >> ${LOGFILEy
y
n
n
EOF
It's sooooooooooooooo close. We are running IDS V7.3.TC3 on NT4. I can be
reached at jhimschoot@crowechizek.com.
Thanks for your time,
Jim
"Art S.
Kagel" To: James A Himschoot/SB/CroweChizek/US
<kagel@bloomb cc:
erg.net> Subject: Re: Script Parameter Passed to
Ontape Restore script
11/01/1999
10:33 AM
Please
respond to
kagel
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