Re: ontape non-interactiv?
Posted in 1997
Stefan Mayer wrote:
>
> I want to backup my informix-db nightly on disk, so
> is there a possibility to run a script in a non-interactive mode?
>
> tonga@~ > ontape -s -L 0
>
> Please mount tape 1 on /disk/archive.dev and press Return to continue ...
>
> As far as I know, the ontape command has only the two switches above.
>
> thanks in advance,
>
> Stefan
>
> --
> Stefan Mayer mayer@informatik.uni-freiburg.de
> Institut f"ur Informatik
> Universit"at Freiburg phone: +49 (761) 203-8189
> Am Flughafen 17, Gebaeude 51 secretary: +49 (761) 203-8160
> 79110 Freiburg, Germany fax: +49 (761) 203-8109
We use expect (unix shell based on tcl) to do the easy stuff (like
"ontape -s -L0<foo") but more importantly, to change tapes when it
prompts you at the end of one. Very easy to do.
Rob.
--
_________________________________
| Robert Donat |
| rdonat@sigg.com |
| http://sashimi.wwa.com/~donat |
|_______________________________|