Files
Scripts_Python/fabfile.py
2024-01-09 19:29:38 +01:00

13 lines
427 B
Python

from fabric import Connection
c = Connection(host='192.168.1.7', user='bruno', port=42666)
result = c.run('uname -s')
result = c.put(local='/Users/bruno/test.csv', remote='/homes/bruno')
# erreur avec local=
#result = c.get(remote='/homes/bruno/httpd-vhost.conf', local='/Users/bruno/Downloads/')
result = c.get(remote='/homes/bruno/httpd-vhost.conf')
# erreur avec '/homes/bruno/hello.py'
result = c.run('python hello.py')