Forum Discussion
Actually this is a better script. The above still works but it's not as efficient and doesn't show that once you're signed in you can indeed call signin
in parallel just fine.
```
!/usr/bin/env bash
export account=$1
signin() {
local sequence=$1
echo "$1"
eval "$(op signin --account ${account})"
}
export -f signin
cat <<EOF
You'll be prompted for biometric unlock once and then see the rest of the
sequence numbers in random order
EOF
op signout && signin 1 && parallel -j0 signin ::: {2..10}
cat <<EOF
You'll be prompted 10 times for biometrics unlock, one at a time in random
order.
EOF
op signout && parallel -j0 signin ::: {1..10}
```
Again on my box:
```txt
$ bash ~/Downloads/x ***
You'll be prompted for biometric unlock once and then see the rest of the
sequence numbers in random order
1
2
4
3
6
5
7
8
9
10
You'll be prompted 10 times for biometrics unlock, one at a time in random
order.
1
2
3
5
4
6
9
7
8
10
```