How to run "sudo" commands on local server from Fabric?
- by ycseattle
In Fabric, there is a "sudo" method which allows one to run the sudo command on remote server. How do I run sudo command on local server? Like, should I use the following command?
local('sudo rm -R /home/user1/tmp/')
I tried to use the fabric api sudo() and point to localhost but it doesn't work.
Thanks!