I am not sure if that Subject really explains it, basically I have a script that executes a program that requires a passphrase from the user. I can easily execute this by issuing the -p argument followed by the passphrase however that shows up on possible logs or at least on the results of the ' ps ' command. If you do not supply this -p argument it provides a new line with the echo " Enter Passphrase: " and asks for input.
My question is how can I provide a result/input for the Passphrase request and is it still possible to throw this application in the background with the ' & ' following the command?
Example of original:
echo "Attempting connection to Service ";
/usr/local/test/javatestfile -u $username -p $passphrase &
All comments/suggestions appreciated.