Question about openSSL and Salt

Hey all, i have an application i am developing and i would like to use the
OpenSSL des3 encryption, the only problem i am having is when i need to input the second key verification. Heres what i have so far

openssl des3 -salt -in /tmp -out pwenc.z | echo 1111

usually for password verification i use

echo myPassword | sudo myProcessHere

and i works great however this will only get me the first key response not the second

any help would be greatly appreciated.