Re: Help!! ontape -s in background
Posted in 1997
On Thu, 20 Mar 1997, Walter S. Tyszka wrote:
} Hello Sham,
}
} You might try: \\012 instead of ^M
} The \\ means that an octal value follows, and the 012 is the value for a
} new line character.
} --
} Regards,
}
} Walter S. Tyszka (wstyszka@ingr.com) * Standard disclaimers apply *
We put the newline values in a file a redirect from it in the command. (We
actually have two consecutive newlines in the file)
ontape -s -L 0 < filename
--
Con Woodall Colorado St. U.; Veterinary Teach. Hosp.; Ft. Collins CO 80523,
USofA; 970-491-1244 FAX 970-491-4100 cwoodall@vth1.vth.colostate.edu"There is no 'maybe' in Boolean algebra."
--
}
} } Sham, Vaidya wrote:
} } >
} } > Hi,
} } >
} } > Although running an ontape -s archive in the background is not recommended
} } > by Informix due to the fact that it may hang online if the tape you are
} } > writing too needs to be changed. The reason for hanging up is ontape will
} } > continue to wait for a tape change and when the time comes for a checkpoint
} } > to be written, the checkpoint program will try to write out data to the
} } > archive tape and that will then hang OnLine.
} } >
} } > However, if I am absolutely sure that the entire archive will fit onto
} } > tape or I make sure that I am writing to disk with enough space I am OK....
} } >
} } > My problem is ontape -s asks for a return to confirm the tape is entered,
} } > and waits for the very first tape, how do I enter the "Enter" keystroke from
} } > a korn shell. The following script does not work and is a copy of the Joe
} } > Lumbley script mentioned in his book for C shell. ( ^M - Control M is a
} } > carraige return ). I am running OnLine version 7.12 on a Sun Solaris
} } > system.
} } >
} } > # Begin script
} } > ontape -s << EOF
} } > 0
} } > ^M
} } > EOF
} } > #End script
} } >
} } > Any ideas appreciated...
} } >
} } > Thanks
} } >
} } > Sham Vaidya
} } > smvaidya@auto.rockwell.com
} }
} } Sham I use bourne shell instead
} } I do it like this:
} }
} } ontape -s -L 0 <<!!
} }
} } !!
} }
} } The empty line in the 'here-document' (that is between the !!-pair)
} } provides the Rturn to ontape
} } It has proven to work in practice with online 5, 6 and 7 on IRIX, AIX,
} } SCO and EP/IX
} }
} } Bye
} }
} } Gert van Eck
} }
}