Unix Technical Forum

RE: Automatic ontape

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. ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 08:31 AM
Colin Bull
 
Posts: n/a
Default RE: Automatic ontape




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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com