xxxxxxxxxx
self.returncode = subprocess. run(self.shellScriptPath, input='yes\n', text=True).returncode
xxxxxxxxxx
chmod +x file.sh # Give execute permissions to the .sh file
./file.sh # Run the .sh file
xxxxxxxxxx
./script-name-here.sh #Chage the "script-name-here" to the name of the .sh file.