gpg-zip : passphrase as parameter for scripts

Lee Elcocks l_elcocks at hotmail.co.uk
Mon Apr 4 17:57:27 CEST 2011


i dont know of this command --gpg-args, and by the looks of it, neither does GPG (that's what the errors telling you)
 
 
echo passphrase| gpg-zip --gpg-args --passphrase-fd -o test.gpg -s

The line should be 
 
echo passphrase| gpg-zip --gpg-args --passphrase-fd 0
 
I also dont know of gpg-zip, and neither does GPG, thats what the error is telling you.
 

 

 
> Date: Mon, 4 Apr 2011 16:43:08 +0200
> Subject: Re: gpg-zip : passphrase as parameter for scripts
> From: arno.steffen at googlemail.com
> To: l_elcocks at hotmail.co.uk
> 
> 2011/4/4 Lee Elcocks <l_elcocks at hotmail.co.uk>:
> > Try also using --batch when automating.
> >
> >> Date: Mon, 4 Apr 2011 03:02:08 -0700
> >> From: arno.steffen at googlemail.com
> >> To: gnupg-users at gnupg.org
> >> Subject: gpg-zip : passphrase as parameter for scripts
> >>
> >>
> >> I am using in a script, with more than one of this kind of lines:
> >>
> >> #!/bin/sh
> >> /usr/local/bin/gpg-zip -o /opt/u1.tar.gpg -s /opt/1*
> >> /usr/local/bin/gpg-zip -o /opt/u2.tar.gpg -s /opt/2*
> >> ...
> >>
> >> I have to answer every line with question for passphrase. This sucks.
> >>
> >> I have seen there is a parameter --gpg-args where I can pass args to gpg.
> >> But I don't get this working with some kind of
> >>
> >> echo 'passphrase' | gpg-zip --gpg-args --passphrase-fd -o ... - s
> >>
> >> Anybody an idea how this is working?
> >>
> >> Best regards
> >> Arno
> >>
> >> --
> >> View this message in context:
> >> http://old.nabble.com/gpg-zip-%3A-passphrase-as-parameter-for-scripts-tp31312954p31312954.html
> >> Sent from the GnuPG - User mailing list archive at Nabble.com.
> >>
> >>
> >> _______________________________________________
> >> Gnupg-users mailing list
> >> Gnupg-users at gnupg.org
> >> http://lists.gnupg.org/mailman/listinfo/gnupg-users
> >
> 
> This all doesn't seems to help:
> 
> $echo passphrase| gpg-zip -o test.gpg -s comp_prod_build.sh --gpg-args
> --passphrase-fd 0
> /bin/tar: Unknown Option „--gpg-args“
> „tar --help“ oder „tar --usage“ gives further Informationen.
> 
> 
> $echo passphrase| gpg-zip --gpg-args --passphrase-fd -o test.gpg -s
> comp_prod_build.sh
> Reading passphrase from file descriptor 0
> Call: gpg [Optionen] [Dateiname]
> 
> 
> $ echo SensoPart| gpg-zip --gpg-args --passphrase-fd 0 -o test.gpg -s *
> Usage: gpg-zip [--help] [--version] [--encrypt] [--decrypt] [--symmetric]
> [--list-archive] [--output FILE] [--gpg GPG] [--gpg-args ARGS]
> [--tar TAR] [--tar-args ARGS] filename1 [filename2, ...]
> directory1 [directory2, ...]
> Encrypt or sign files into an archive.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20110404/d8000217/attachment.htm>


More information about the Gnupg-users mailing list