Welcome!
Important information
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-18 Final release info here
-- Migration Information to MX-18 here
-- antiX-17.3 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

one-click gpg script

Just as the name says, here is where you can post tips and tricks to share with other users of MEPIS.
Post Reply
Vincent17
Forum Novice
Forum  Novice
Posts: 51
Joined: Tue Feb 20, 2018 1:07 am

one-click gpg script

#1

Post by Vincent17 » Fri Dec 28, 2018 9:42 pm

I was surprised that this simple script works. I use it for quick access to lists of confidential, frequently-consulted data.

Code: Select all

#! /bin/bash
xfce4-terminal -H -e "gpg -d $0"
echo RELOADAGENT | gpg-connect-agent #forget password 
exit

-----BEGIN PGP MESSAGE-----

jA0ECQMC9EfyMrSdOovO0k4B44twAXEfKKwKtXRZFZRlx7oE3YUs1oHwaxtM5wMy
M0iewxGMX6qIjZu5nPjRL++h1+lsZjBn83JDZfMq/kZ00sK2BAFjW8m9vLhHSDc=
=oMI6
-----END PGP MESSAGE-----
Edit: added command to forget password immediately :rolleyes:

Post Reply

Return to “Tips&Tricks”