Il giorno sab 18 apr 2020 alle ore 04:55 Marcello <marce...@linuxvil.it> ha scritto:
> Saluti a tutti, > devo effettuare un tunnel ssh, aprire un programma exe con wine > mi rispondo da solo from sshtunnel import SSHTunnelForwarder import os server= SSHTunnelForwarder(('192.168.2.1', 22),ssh_username="admin",ssh_password="password",remote_bind_address=('192.168.2.25', 8291)) server.start() aprifile = 'wine '+os.path.abspath('.')+os.sep+'winbox.exe 127.0.0.1: '+str(server.local_bind_port) os.system(aprifile) server.stop() print('END!') Ciao Marcello
_______________________________________________ Python mailing list Python@lists.python.it https://lists.python.it/mailman/listinfo/python