paypal plugin
quarta-feira, 7 de agosto de 2013
SPUR - python ssh library
#!/usr/bin/python
import spur
shell = spur.SshShell(hostname="server.domain", username="username", password="***********")
with shell:
result = shell.run(["ls","-la"])
print result.output
>_
total 1060
drwxr-xr-x. 4 gustavo gustavo 4096 Ago 7 11:53 .
drwx------. 59 gustavo gustavo 4096 Ago 7 11:51 ..
-rw-------. 1 gustavo gustavo 78256 Jul 31 09:23 10-12.pdf
-rw-------. 1 gustavo gustavo 80599 Jul 31 09:23 11-12.pdf
-rw-------. 1 gustavo gustavo 81575 Jul 31 09:23 12-12.pdf
-rw-------. 1 gustavo gustavo 78241 Jul 31 09:22 7-12.pdf
-rw-------. 1 gustavo gustavo 78369 Jul 31 09:22 8-12.pdf
-rw-------. 1 gustavo gustavo 80578 Jul 31 09:23 9-12.pdf
-rw-------. 1 gustavo gustavo 45956 Jul 26 12:46 A.pdf
-rw-rw-r--. 1 gustavo gustavo 53094 Jul 31 13:16 bandeirantes.jpg
drwxrwxr-x. 2 gustavo gustavo 4096 Jul 31 09:26 contracheques
Assinar:
Postagens (Atom)