Retourner au contenu associé (entrée de forum : Introduire un script python dans un script shell)
Posté par Pouetpouet le 03 avril 2019 à 22:24. En réponse au message Introduire un script python dans un script shell. Évalué à 1.
read -r -d '' WINRMCMD <<-EOF import winrm, sys s = winrm.Session('${instance_ip}', auth=('Admin','${instance_pass}')) r = s.run_cmd('hostname') sys.exit(r.status_code) EOF python -c "${WINRMCMD}"
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# Une version avec read
Posté par Pouetpouet . En réponse au message Introduire un script python dans un script shell. Évalué à 1.