Re: ontape non-interactiv?
Posted in 1997
vfraenkle@aol.com — — source: Informix-list mailing list archive (1991-1998)
Im Artikel <5ct3i5$339@n.ruf.uni-freiburg.de>,
mayer@informatik.uni-freiburg.de (Stefan Mayer) schreibt:
>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 ...
>
>
On UNIX you can use this in a shell scrpit:
ontape -s -L0 <<END
<CR>END
<CR> means an empty line
or you can add one or more empty lines to a file (e. g. ontape.cr),
then you can use it as follows;
ontape -s -L0 < ontape.cr
Hope that helps
Volker