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 > how to pass "Carriage Return" to ontape commnad

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-06-05, 18:26
sundar_sms2001 sundar_sms2001 is offline
Registered User
 
Join Date: Jan 2005
Posts: 24
how to pass "Carriage Return" to ontape commnad

Hi frineds,
Thanks a lot for your kind help . I have set up a test environment
by getting help from db forums.
One more issue, i have now.
I have return a shell script, that would take take backup of database in file,
and then we would move that to tape.
but here the problem is:
output of the backup.

Please mount tape 1 on /infobkp/yennora/fullbkp and press Return to continue ...

10 percent done.
20 percent done.
30 percent done.
40 percent done.
50 percent done.
60 percent done.
100 percent done.


the first line " Please mount tape 1.....' , where i have to press " carriage return" key ,only then backup process starts, until that it stuck there.
please anyone can help to resolve this issue to automate this backup process.


Your help is highly appreciated.


thanks and ragards
Sundar
Reply With Quote
  #2 (permalink)  
Old 03-06-05, 23:08
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Hi Sundar,

This will work

echo '\n0' | /export/home/informix/bin/ontape -s -L 0 | head -100 > /export/home /informix/test/backup.log
Reply With Quote
  #3 (permalink)  
Old 03-07-05, 09:46
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
set up the variables INFORMIXDIR, INFORMIXSERVER, PATH, ONCONFIG

$INFOIRMIXDIR/bin/ontape -s -L 0 <<EOF
--blank line----- represents the carrige return
EOF



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