Rick Funderburg wrote:
James G. Sack (jim) wrote:
then in your script, write
gpg --passphrase-fd=0 rest_of_command_specs <secret
I will probably end up doing this, but I am interested if there is any
way to securely take data from a bash variable and put it to a file. Is
there a write function? I would normally use echo, but that is not
secure. Is this a task that is beyond bash?
echo $VAR >filename
..but, you should probably also be suspicious of putting sensitive info
into the shell environment. Take a look at the following
ASDF=NOTSECRET ps -ev | grep ASDF
.. maybe I've lost track of just what you trying to do. If you re-posed
your original objective, perhaps there will be further alternatives
suggested.
..jim
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list