How to run "sudo" commands on local server from Fabric?
Posted
by ycseattle
on Stack Overflow
See other posts from Stack Overflow
or by ycseattle
Published on 2010-05-21T01:21:50Z
Indexed on
2010/05/21
1:30 UTC
Read the original article
Hit count: 388
fabric
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!
© Stack Overflow or respective owner