I am trying to run fsck /dev/sdb and it would take a longtime to finish with the number of inodes.
I have tried the fsck -a/-p option, but there is unexpected inode table.
Now, i have to keep pressing on the letter y for hours as i can't use the fsck -y option as the first question fsck asks is to abort.
i want my expect script to be like this
spawn fsck /dev/sdb1
here, i want to put a while loop like this
while fsck sends "y?" expect sends "y/r"
in other words as long expect "y?" condition is satisfied, do send "y\r"
any help greatly appreciated