Shell Scripting geli attach

I'd like to read -p "Password:" password and then echo $password to geli attach so I don't have to type the same password multiple times.

How do I redirect or pipe the $password variable properly? I know geli attach also accepts a -j /pass/file but I'd rather not save sensitive information to disk.
 
Back
Top