Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6018331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:15:35+00:00 2026-05-23T03:15:35+00:00

I have a Makefile that calls gpg to decrypt text files before opening it

  • 0

I have a Makefile that calls gpg to decrypt text files before opening it with a text editor for editting. Because I do it frequently, I’d like save time typing in password every time, how can I set up gpg to remember I passed the password test recently? For example, trigger me to type in password only if I haven’t done it in the last 30 minutes.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:15:36+00:00Added an answer on May 23, 2026 at 3:15 am

    I think there are two ways to do this:

    • let gpg read the passphrase from a file using the option --passphrase-file (but the gpg man page advises against using this option if you can avoid it! And i think you can avoid it as follows…);

    • use gpg-agent for caching the passphrase. If the shell script requires you to enter the passphrase every time, there’s likely no agent running. If a gpg-agent is running, env | grep GPG should give some output like GPG_AGENT_INFO=/tmp/gpg-6YivG1/S.gpg-agent:10479:1. If there’s no GPG_AGENT_INFO variable set, you may have to start gpg-agent manually or (preferable) configure your system to start the gpg-agent automatically. How to do this depends on your distribution. The GnuPG Manual has some infos about this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Makefile that looks like this CXX = g++ -O2 -Wall all:
I have a makefile that builds and then calls another makefile. Since this makefile
If I have a makefile that calls another makefile, how to I get the
If you have a project that utilizes a makefile which compiles multiple files and
I have a make file that calls ant and maven build files. I've had
I have a working makefile that builds with mingw32. Now i renamed that makefile
I have a makefile project that builds and links a DLL, using the command-line
I have a section of makefile that has this sort of structure: bob: ifdef
I have a project that has a makefile with broken dependencies. Is there any
I have some demos that I downloaded and they come with a Makefile.win and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.