locked
RPM sign script automation RRS feed

  • Question

  • Hi,

    I am running the below script through .bat file. During the execution, it is prompting for the password and after entering the password it is asking do you want replace the existing file . Password is always same and for the next question answer is always "Y". So I want to include in this batch file it self as both the values are same and this will avoid manual entry .Is there a way to do it ? I am ok this to achieve either through .bat file or through Powershell. Please suggest.

    @echo off

    gpg --output Test.rpm --sign Test.rpm

    Thanks

    • Moved by Bill_Stewart Wednesday, February 14, 2018 7:41 PM This is not "look up documentation and do my work for me" forum
    Wednesday, January 10, 2018 12:01 AM

All replies

  • You will have to ask the vendor of the "gpg" program for help. This is a scripting forum and not a support forum for vendors programs.  Placing this in a batch file does not make it a script.

    Start by doing the obvious and read the documentation for the program.


    \_(ツ)_/

    Wednesday, January 10, 2018 12:10 AM