This is a discussion on RE: Automatic ontape within the Informix forums, part of the Database Server Software category; --> arxngos@gmail.com wrote > I have informix 9.40.TC4 on Windows 2000 and I would like to > automate the ontape. ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| arxngos@gmail.com wrote > I have informix 9.40.TC4 on Windows 2000 and I would like to > automate the ontape. I have created a batch file as follows: > > cd C:\Program Files\Informix > > echo ol_ctseu11.cmd > > ontape -s -L 0 > > > When I run the batch file it returns the following: > > Please mount tape 1 on E:\DBBackup\backup.txt and press > Return to continue ... > > Then it waits until I press enter in order to continue. How > can I modify the script so that it starts the backup > automatically without displaying the follwing: > > Please mount tape 1 on E:\DBBackup\backup.txt and press > Return to continue ... echo '0\n\n' | ontape -s Works for me. But beware, if your data spans more than one tape, it is not this simple. Colin Bull __________________________________________________ _____________________ This email has been scanned for all known viruses by the MessageLabs Email Security System. __________________________________________________ _____________________ sending to informix-list |