execute commands as su on remote server
lac at openend.se
Wed Aug 19 10:51:56 CEST 2015
In a message of Wed, 19 Aug 2015 10:44:53 +0200, Laura Creighton writes:
>I haven't tried this but fabric looks encouraging:
> fabric.operations.run(*args, **kwargs)
> Run a shell command on a remote host.
> Any text entered in your local terminal will be forwarded to the
> remote program as it runs, thus allowing you to interact with
> password or other prompts naturally
> You may pass pty=False to forego creation of a pseudo-terminal on
> the remote end in case the presence of one causes problems for the
> command in question.
And now that I started looking, I found this:
so, somebody got it to work ...
More information about the Python-list