I'm trying to write a script that I can run just before repartitioning and setting up metadevices by temporarily booting to a 3rd disk. But the confirmation prompts are interrupting the script. Like the "ufsdump 0f - / | ufsrestore xf -" that asks for the following.
set owner/mode for "." ? [yn]
Also newfs has a "Do you want to proceed [y/n]" prompt.
Is there anyway to pre-buffer the YES answer for these commands, like "fsck -y".