Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95481
| From | Laura Creighton <lac@openend.se> |
|---|---|
| Subject | Re: execute commands as su on remote server |
| References | <a6b3da0b-d9be-4241-8577-85aafca72440@googlegroups.com> <fa8fe84e-23fa-4616-b4a9-03dda6dc4396@googlegroups.com> <201508190844.t7J8irDJ001699@fido.openend.se> |
| Date | 2015-08-19 10:51 +0200 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6.1439974325.28100.python-list@python.org> (permalink) |
In a message of Wed, 19 Aug 2015 10:44:53 +0200, Laura Creighton writes: >I haven't tried this but fabric looks encouraging: > >>From http://docs.fabfile.org/en/latest/api/core/operations.html#fabric.operations.run > > 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. > >Laura >-- >https://mail.python.org/mailman/listinfo/python-list And now that I started looking, I found this: http://stackoverflow.com/questions/12641514/switch-to-different-user-using-fabric so, somebody got it to work ... Laura
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
execute commands as su on remote server harirammanohar159@gmail.com - 2015-08-17 19:57 -0700
Re: execute commands as su on remote server Chris Angelico <rosuav@gmail.com> - 2015-08-18 13:06 +1000
Re: execute commands as su on remote server harirammanohar159@gmail.com - 2015-08-18 23:58 -0700
Re: execute commands as su on remote server harirammanohar159@gmail.com - 2015-08-19 00:02 -0700
Re: execute commands as su on remote server Laura Creighton <lac@openend.se> - 2015-08-19 10:44 +0200
Re: execute commands as su on remote server Laura Creighton <lac@openend.se> - 2015-08-19 10:51 +0200
Re: execute commands as su on remote server harirammanohar159@gmail.com - 2015-09-01 05:16 -0700
Re: execute commands as su on remote server Laura Creighton <lac@openend.se> - 2015-09-01 15:25 +0200
Re: execute commands as su on remote server Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-09-02 09:05 +0200
Re: execute commands as su on remote server harirammanohar159@gmail.com - 2015-10-01 00:10 -0700
csiph-web