###質問
下記のように、pkcs15-toolのコマンドを実行しすとき、PINを入力する必要で、stdinでやってみましたが、proc.stdout.read()のとこるの止まっている状態でした。どこが間違っているか教えてくださいませ。
from subprocess import Popen, PIPE, STDOUT my_pin = "1234\n" proc = Popen('pkcs15-tool --read-certificate 2 --verify-pin --auth-id 02',stdout=PIPE, stdin=PIPE) proc.stdin.write(my_pin) proc.stdin.close() result = proc.stdout.read() print proc
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/11/09 13:05