2008-11-21から1日間の記事一覧

スクリプト内でsshを使う

import subprocess sp = subprocess.Popen("ssh -Y username@example.com", shell=True, stdin=PIPE) sp.stdin.write("xterm") とするとsshがパスワードを聞こうとあるはずの端末を使おうとする。普段なら何の問題もないのだが今回はwxWidgetsを使ったGUIな…

xinit(2)

xinit - MasaHeroの日記の続きしょうがないので$DISPLAYを設定して起動させるためだけのshellスクリプトを書いてそれ経由でpythonスクリプトを起動させたらうまくいった。あっけない。