I want to decrypt and mount the default eCryptfs private directory by executing the “ecryptfs-mount-private” terminal command in C++ and providing the passphrase/password from the same C++ script. I have tried forking then exec the shell (/bin/sh) and opening pipes for I/O with sh but when I try to write through the pipe I get the following error: stty: standard