ubuntu - use SSH over Python -


how run ssh on python script?

ssh gateway@192.168.0.189 'display=:0 notify-send "title" "description"' 

my python script ask raw_input() title, , 1 description. python run ssh inserting title , description typed user.

import subprocess subprocess.check_call(     '''ssh gateway@192.168.0.189 'display=:0 notify-send "{0}" "{1}"' '''.format(title, description),     shell=true) 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -