Trying to automate ONTAPE
Posted in 1999
Topics: Backup & Restore, Platform-Specific Issues
Hi Folks:
I was hoping to get some guidance on trying to script past the
annoying "please mount tape and press return to contune..." message
after entering:
ontape -s -L 0
I tryed to pipe in a carriage return by placing it in another file and
entering:
ontape -s -L 0 < ontape.input
I must be placing the wrong code in the input file because ontape
still stops and asks for a tape. I am trying to do this on an RS/6000
running AIX 4.3.
Any suggestions would be much appreciated.
Thanks,
Oleh
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
try : "echo | ontape -s -L 0" - works for me on the same platform (INF7.24)
- --
Nir Levy Email: nlevy@shaked.co.il
System Administrator Phone: +972-3-5797551/5789536
Shaked Computer Systems Ltd. Fax: +972-3-5703705
http://www.shaked.co.il/~nlevy
- --
Oleh Holynskyj <oleh@mindspring.com> wrote in message
news:37a6591d.1563117@news.mindspring.com...
> Hi Folks:
>
> I was hoping to get some guidance on trying to script past the
> annoying "please mount tape and press return to contune..." message
> after entering:
>
> ontape -s -L 0>
> I tryed to pipe in a carriage return by placing it in another file and
> entering:
>
> ontape -s -L 0 < ontape.input>
> I must be placing the wrong code in the input file because ontape
> still stops and asks for a tape. I am trying to do this on an RS/6000
> running AIX 4.3.
>
> Any suggestions would be much appreciated.
>
> Thanks,
>
Oleh
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.1 for non-commercial use <http://www.pgp.com>
iQA/AwUBN6aBEtBe37AVcjAxEQJOjgCg+ZiHn7g5B1PiRpZeKDvoa4d+8rsAnAsZ
nDXTYsCwOOx+QdpFaUacaYLt
=ELzZ
-----END PGP SIGNATURE-----
/bin/echo "\\n0\\n\\n" | /opt/informix/bin/ontape -s -L 0 > Oleh Holynskyj wrote: > I was hoping to get some guidance on trying to script past the > annoying "please mount tape and press return to contune..." message ============================================ work: btimes@uis.doleta.gov, aim: max1nes home: maxines@earthlink.net, aim: mesarjeant homepage: http://home.earthlink.net/~maxines ============================================
Try the scripts listed in the http://www.iiug.org website, within the FAQ
(Frequently Asked Questions) area.
Take care.
Clifton Bean
Oleh Holynskyj <oleh@mindspring.com> wrote in message
news:37a6591d.1563117@news.mindspring.com...
> Hi Folks:
>
> I was hoping to get some guidance on trying to script past the
> annoying "please mount tape and press return to contune..." message
> after entering:
>
> ontape -s -L 0>
> I tryed to pipe in a carriage return by placing it in another file and
> entering:
>
> ontape -s -L 0 < ontape.input>
> I must be placing the wrong code in the input file because ontape
> still stops and asks for a tape. I am trying to do this on an RS/6000
> running AIX 4.3.
>
> Any suggestions would be much appreciated.
>
> Thanks,
>
> Oleh