mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
21 lines
409 B
Bash
Executable file
21 lines
409 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# This is test script 2/3 for email sign/encrypt operation on Unix.
|
|
#
|
|
# See prep-encrypt for instructions.
|
|
|
|
rm -rf test.data
|
|
echo "Hello, World" > test.data
|
|
exec gpg-connect-agent -S ~/.gnupg/S.uiserver --run <(cat <<'BYE'
|
|
/subst
|
|
/serverpid
|
|
session 123 Re: Letter received
|
|
/sendfd test.data r
|
|
INPUT FD
|
|
/sendfd test.data.signencrypt.sign.out w
|
|
OUTPUT FD
|
|
sign --detached --protocol=CMS
|
|
bye
|
|
|
|
BYE
|
|
)
|