> Hello !!!
>
> Why doesn't work this:
>
> e2fsck -yt /dev/hdx
You should only fsck a filesystem when it's unmounted.
> I also tried this:
>
> echo "y" | e2fsck -t /dev/hdx
>
> but it also doesn't worked, because e2fsck is aborted. So my question is,
> how to make that e2fsck could run from cron and it will answer to all
> questions with yes????
After the first question, the line above would probably abort. The "yes"
command was written to solve this problem (it provides an infinite supply of
whatever answer you want, default "y"):
yes|e2fsck foo
Or :-) ...
yes no|e2fsck foo
--
Chris Tyler <[EMAIL PROTECTED]>
Global Proximity Corporation http://Global.Proximity.ON.CA/
Internet and Computer Consulting (519) 469-3439 / fax (519) 469-8653
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.