When I run "e2fsck" command through cli it asks for options like asking for abort, force rewrite etc, and the process get completed successfully. But I want to run "e2fsck" command using apache by executing this command through a bash script, from here I cannot pass these arguments. I have tries using -a, -p arguments the don't work. The closest solution that worked was from https://unix.stackexchange.com/a/487438/563769 , it successfully passed n to abort but cannot pass yes to all others.
Asked by Amit Singh
(1 rep)
Mar 2, 2023, 07:09 AM
Last activity: Mar 7, 2023, 07:40 AM
Last activity: Mar 7, 2023, 07:40 AM