Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to write local('sudo xxxxx') in fabric2? #1878

Open
nyssance opened this issue Sep 21, 2018 · 2 comments
Open

How to write local('sudo xxxxx') in fabric2? #1878

nyssance opened this issue Sep 21, 2018 · 2 comments

Comments

@nyssance
Copy link

nyssance commented Sep 21, 2018

@task(hosts=['local'])
def test(c):
    c.local('sudo command')   # not work, command not found
    c.local('sudo /usr/local/bin/command') # work

How to config it? I can not find answer in docs

@fkoksal
Copy link

fkoksal commented Dec 12, 2018

This seems to be a question rather than an issue related to Fabric.
Please have a look at Stackoverflow. Question below may help:
https://stackoverflow.com/q/51793744/3560465

@pete312
Copy link

pete312 commented Dec 12, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants