在 2019-06-01 7:01, Cameron Simpson 写道:
On 31May2019 21:51, Fc Zwtyds wrote:
在 2019-05-30 6:41, Cameron Simpson 写道:
The you could just use os.system() to run the other commands,
because the environment now has the necessary environment settings.
[...]
Under your guidance, the python code
在 2019-05-31 21:51, Fc Zwtyds 写道:
在 2019-05-30 6:41, Cameron Simpson 写道:
...
...
...
The you could just use os.system() to run the other commands, because
the environment now has the necessary environment settings.
See how you go.
Cheers,
Cameron Simpson (formerly c...@zip.com.au)
Hi
在 2019-05-30 6:41, Cameron Simpson 写道:
...
...
...
The you could just use os.system() to run the other commands, because
the environment now has the necessary environment settings.
See how you go.
Cheers,
Cameron Simpson (formerly c...@zip.com.au)
Hi,
Under your guidance, the python code
在 2019-05-31 21:51, Fc Zwtyds 写道:
在 2019-05-30 6:41, Cameron Simpson 写道:
...
...
...
The you could just use os.system() to run the other commands, because
the environment now has the necessary environment settings.
See how you go.
Cheers,
Cameron Simpson (formerly c...@zip.com.au)
Hi
在 2019-05-30 6:41, Cameron Simpson 写道:
On 29May2019 22:37, Fc Zwtyds wrote:
在 2019-05-27 11:19, Cameron Simpson 写道:
The output of "ssh-agent -s" is Bourne shell variable assignment
syntax. You need to parse that [...]
I want to rewrite the shell script to python script so
在 2019-05-27 11:19, Cameron Simpson 写道:
The output of "ssh-agent -s" is Bourne shell variable assignment syntax.
You need to parse that and then install those values in so.environ
before calling the second command. The subprocess module has methods for
collecting the output of a command (see t
在 2019-05-27 18:59, coldpizza 写道:
example code for doing it in pure python:
http://code.activestate.com/recipes/576810-copy-files-over-ssh-using-paramiko/
Thank you very much and the information you recommended, I will take the
time to learn it: paramiko
--
https://mail.python.org/mailman/l
在 2019-05-27 11:19, Cameron Simpson 写道:
On 27May2019 08:22, Fc Zwtyds wrote:
Thank you very much for your detailed answer.
I will try to learn how to capture and parse the output of "ssh-agent
-s" and learn how to talk to the agent.
The output of "ssh-agent -s" is B
在 2019-05-27 7:13, Cameron Simpson 写道:
On 26May2019 22:55, Fc Zwtyds wrote:
I am using cygwin on Windows 8.1. These two commands work fine in
cygwin:
ssh-agent -s
ssh-add ~/.ssh /id_rsa
No, they run without error (apparently). That is an entirely different
thing.
In particular, &quo
在 2019-05-27 0:27, MRAB 写道:
On 2019-05-26 15:55, Fc Zwtyds wrote:
Hi,
I am using cygwin on Windows 8.1. These two commands work fine in
cygwin:
ssh-agent -s
ssh-add ~/.ssh /id_rsa
I tried to use them on windows cmd and it worked fine. Now I am going
to use python to write code to
Hi,
I am using cygwin on Windows 8.1. These two commands work fine in cygwin:
ssh-agent -s
ssh-add ~/.ssh /id_rsa
I tried to use them on windows cmd and it worked fine. Now I am going
to use python to write code to implement the above command.
os.system('ssh-agent -s')
os.system('ssh-add id_
11 matches
Mail list logo