Re: Call OnTape from a Perl script?
Posted in 2005
Dave Thacker — — source: Usenet: comp.databases.informix
On Friday 18 March 2005 09:46, Diveman wrote:
> Hi guys,
>
> Can anyone give me some advise how to call ontape from a Perl script?
> (Im running IDS7.31 on Win2000)
>
> Im trying something like this:
> system( "e:\\\\Informix\\\\ol_swedlive.cmd && ontape -s -L 0 \\<
> e:\\\\Informix\\\\scripts\\\\Enter.txt" );
>
> But, i get stuck on:
> Please mount tape 1 on L:Backserv\\Backup.dmp and press Return to
> continue,,,
Install the perl Expect module, which allows you to trap and respond to
traffic on stdout. We've used this to automate our level 0 with ontape.
Good Luck!
DT
--
Dave Thacker
Senior Systems Administrator
Omni Hotels Reservation Center
V:402-952-6535 F:402-334-8013 M: 402-981-4613 (24/7)
sending to informix-list