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
Post a Comment