Have you tried --passphrase "myPassword" or --passphrase-fd 0 (with the pipe)?
(Standard statement about how storing the passphrase in a scheduled task is a bad idea, etc.) David On Wed, Oct 17, 2012 at 5:56 AM, Gabi <g...@idieikon.com> wrote: > We want to automate the decrypt process in some file with a task in the > operating system (Windows 7 64) > > What we want to do is from command line is: gpg2.exe --decrypt file.gpg > > result.txt Of course it works ok, but launch pinentry.exe, a dialog box to > ask for the password of the certificate. > > So we use a pipeline to send the password to gpg2 like this: > > echo "myPassword" | gpg2.exe --decrypt file.gpg > result.txt > > But this does not work. > > > One possible workaround is that once we have put the password in the > pinentry.exe dialog, we can decrypt again WITHOUT using the password and > after some time (some minutes) gpg2.exe ask us for a password again.(For > example after writing password if we run the same bat with the same command > it does not ask us for a password...in some minutes at least) > > So there could be 2 possible solutions we don't know how to implement. > 1) A way to send the password to the dialog, the command echo "myPassword" | > gpg2.exe --decrypt file.gpg > result.txt was supposed to work, we find it in > a forum, but it does not work. > 2) Can we change the time it ask again for the password? Where? How? If we > can set it to, for example 1 year, the we can run the command, type the > password in the dialog box and use the same command in a daily task and > it'll work until next year... > > > Has anybody an answer for 1) or 2)? Any of them will solve the problem... > > Regards. > > > > _______________________________________________ > Gnupg-users mailing list > Gnupg-users@gnupg.org > http://lists.gnupg.org/mailman/listinfo/gnupg-users -- David Tomaschik OpenPGP: 0x5DEA789B http://systemoverlord.com da...@systemoverlord.com _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users