Hi,
Any help or suggestions would be most appreciated. I am having problems in the latter end of this ksh script where I will be checking two files. If they exist do nothing otherwise I need to reinitialize the database which resides on o/s Aix 5.3. The problem I am facing is when the reinit command is issued from command line the user needs to manually input y and hit enter ex.(reinitex.pjg) Which takes control away from the script. Is there a solution to script a y with a <enter command> and still maintain control of the script after the reinit is finsihed?
if [[ -e $monShMemFile ]] && [[ -e $vistaFile ]]
then
echo "break out of script"
else
hcidbinit -i
# user needs to enter "y" + enter to reinit database
fi