Hi Guys,
I do want to automate the creation of recovery keys on our mac environment and I do have some troubles with the expect of the spawn command. Details:
I need to expect the following string:
Enter a password for '/':
But I always end up getting the following information from the expect when running bash -x:
Enter a password for /:
My Code is:
expect -c "
spawn `sudo fdesetup changerecovery -personal`
expect `Enter a password for ''''/'''':` {send $REC_PW
}
sleep 1 exit
"
Any idea on what is going wrong here?
