Re: ontape question
Posted in 1997
Doug McAllister — — source: Informix-list mailing list archive (1991-1998)
Timothy Jones wrote:
>
> I know I have seen the answer to this, but can't find it......
>
> I need to run "ontape --s -L 0" command in a script and not get the
> prompt to mount the tape. I know not to run in the background, but
> should be able to run from a script.
>
> Thanks in advance!!!
> TJ
You need to pipe a return "^M" into the command to handle the mount
message for the tape. By-the-way running from a script is no different
than running in the background since there is no tty attached to the
process to handle the prompts.