I'm trying to take ownership of a TPM via a bash script which will call
tpm_takeownership -u. I believe I'm missing something obvious but am asking
here because I haven't had similar issues passing carriage-returned values
to other binaries.
tpm_takeownership asks 4 questions; I wish to answer them all with "test":
Enter owner password: <waits for input and return>
Confirm password: <waits for input and return>
Enter SRK Password: <waits for input and return>
Confirm password: <waits for input and return>
I'm sure it's something stupid; I've tried the following to no avail:
echo -e "test\ntest\ntest\ntest" | tpm_takeownership -u
echo -e "test\r\ntest\r\ntest\r\ntest" | tpm_takeownership -u
echo -e "test\rtest\rtest\rtest" | tpm_takeownership -u
perl -e 'print "test\ntest\ntest\ntest\n"' | tpm_takeownership -u
perl -e 'print "test\r\ntest\r\ntest\r\ntest\r\n"' | tpm_takeownership -u
perl -e 'print "test\rtest\rtest\rtest\r"' | tpm_takeownership -u
tpm_takeownership -u < test
contents of "test":
test
test
test
test
[EOF]
All of these result in tpm_takeownership asking the above 4 questions
interactively, beginning with the 1st question (e.g. as if nothing was piped
in).
tpm_takesownership -u works fine interactively.
Any ideas?
Thanks for looking,
Paul
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users