Comment exécuter ce SSH sur un script python?utiliser SSH sur Python
ssh [email protected] 'DISPLAY=:0 notify-send "Title" "Description"'
Mon script python demandera un raw_input() pour le Title
, et un autre pour le Description
. Ensuite, le python exécutera le SSH en insérant les Title
et Description
tapés par l'utilisateur.
Jetez un coup d'œil sur [Fabric] (http://docs.fabfile.org/fr/1.6/). –