I want to run ufw Uncomplicated Firewall from python script but it usually runs in interactive mode. Example:
subprocess.check_output(["ufw", "enable"])
Has the following output:
'Command may disrupt existing ssh connections. Proceed with operation (y|n)? Aborted'
Is there a way to run ufw without interactive mode?
ufw --force enable– Panther Apr 20 '15 at 18:30