If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > ontape -r

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-12-04, 12:06
informixfan informixfan is offline
Registered User
 
Join Date: Mar 2004
Posts: 5
Unhappy ontape -r

Hi,
Would like to know if anyone can provide me with a small unix script to
automate the ontape restore, cuz i want to run the restore through a job.and
dont know how to handle the questions of ontape -r through a script.

thanks & regards,
informixfan
Reply With Quote
  #2 (permalink)  
Old 05-21-04, 16:25
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
I use this to do the ontape -s -L 0

$INFORMIXDIR ontape -s -L 0 <<EOF

EOF

the space represents the return key but you can put a value in there.
List the values that you want in the order of questions

ontape -r <<EOF
value
value
EOF

I have not tryed it yet, but might work

Cheers
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On