Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to run code in ssh

stdout = client.exec_command('python -c "exec("' + open('hello.py','r').read().encode('base64').strip('
') + '".decode("base64"))"' )[1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #run #code #ssh
ADD COMMENT
Topic
Name
3+5 =