Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
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
jhimschoot@crowechizek.com. Thanks,Jim
↪ replying to jhimschoot@CroweChizek.Com
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
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
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.