I have wrote a script which receives a user's sentence, i'd like to pipe the string to aspell and then get the INTERACTIVE screen's suggestions (in case user had some typos). Afterwards the words would be sent back to the script and I'd replace the typos with the corresponding words.
I'm aware of aspell options:
1) Check the file for typos and display a list of suggestions in interactive mode:
aspell check <file name>
2) Check the file for typos and display a list of suggestions not in interactive mode:
cat <filename> | aspell -a
but if I try option one, I get "Error: Stdin not a terminal.", I'll be glad to get any fruitful tip how to overcome this issue? :)