Re: unsupervised ontape question
Posted in 1998
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
Danny Williams wrote:
>
> Hi All!
>
> I want to run ontape from a cron job but it requires that you press
> "Return" after mounting your media. Can someone please tell me how to
> pass ontape a single "Return" and if it still wants the media mounted to
> get it to exit.
>
> I've tried a here file, i.e.
>
> ontape -s -L 0 << !> dummy
> !
>
> but that just causes ontape to continually tell me to mount my media if
> it isn't mounted.
Get rid of the string 'dummy' and just put the newline. BTW is the
tape mounted? Are you backing up to a file? The file MUST already
exist and should be length 0 with owner and group informix and
permissions 660 just like the database chunks.
Art S. Kagel