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?
bash has it's own bultin echo, in case your security concern was the
fork()/exec() ?
--
Michael O'Keefe | [EMAIL PROTECTED]
Live on and Ride a 03 BMW F650GSDakar| [EMAIL PROTECTED] / |
I like less more or less less than |Work:+1 858 845 3514 / |
more. UNIX-live it,love it,fork() it |Fax :+1 858 845 2652 /_p_|
My views are MINE ALONE, blah, blah, |Home:+1 760 788 1296 \`O'|
blah, yackety yack - don't come back |Fax :+1 858 _/_\|_,
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list