hi i know the chkfsys utility and know how to check through command line . but i want to check in script .
i have cf having 4 partition . 1st partition having qnx image . after booting i have to check filesystem on other partition . if any error having those partition i have to display the error and shutdown . i don't how to do it. please help me to check filesystem in scipting and take decission .
note:i have partition type- hd0t77,hd0t78,hd0t79,hd0t80
#!/bin/sh
######
# My Test Script
######
echo Test Chkfsys Output
chkfsys -u /dev/hd0t77 $1
STATUS=$?
if test $STATUS -ne 0
then
echo "An error occured while running chkfsys!"
else
echo "error not occured"
fi
# end of Test Script
this script is working good. but some it is asking user input if filesystem corrupted like ..
bad xblock (0x14F88) signature: FIXABLE (data probably lost when fixed).
fix (Y/n) ? N
my question is i have to avoid this asking questions . i want automatically it will check don't asking yes/no questions...
please help me,
thanks and regards,
ganesan