Trying to automate ONTAPE
Posted in 1999
Oleh Holynskyj wanted to script past ontape's 'mount tape and press return' prompt for ontape -s -L 0 on AIX 4.3; redirecting a file did not work. Nir Levy suggested piping echo into ontape, which worked for him on IDS 7.24. Maxine E. Sarjeant gave an echo of newline, 0, newline strings piped in. Clifton M. Bean pointed to scripts in the IIUG FAQ.
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