However, even though i specify no password on the command, the script does not wait for a user input and just carries on regardless and errors out. What would be a better, generic way of doing this ...
So, I have a shell script named "backupdb" that backs up my MySQL database. When I run the command "sudo sh ...