Re: Help!! ontape -s in background
Posted in 1997
What's the '^M' in your script? Did you actually type it into your script? You should just hit <Enter>.
Login as Informix, and try following see how it works, then you can 'vi' to your script:
$ontape -s L 0 <<!
> ### Hit enter here
>!
Sean Wong.
======================================================
} Sham, Vaidya wrote:
}[..SNIP...]
} > 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
} >