Hi, I have done the trusting part automated on my linux box like the following. Give a try anyways and let me know whether it was helpful or not. I did many google search and could not find any method described for this. The following method worked gr8 for me and is the one which I created myself ;-).
For trusting it as 3, use 4 and for 5, use 6 and so on... 1. gpg --import key.pk - Import your key 2. echo $(gpg --list-keys --with-fingerprint --with-colons | tail -2 | head -1 | tr -s ":" ":"| cut -d ":" -f2):4: > /tmp/somefile1 - take the finger print and copy to a temp file. 3. gpg --import-ownertrust < /tmp/somefile1 - import the finger print to the trust data base. Done!!!! You can check the trusting part by typing the below command 1. gpg --export-ownertrust On Thu, Nov 26, 2009 at 4:57 PM, Piotr Bratkowski <pioterb...@o2.pl> wrote: > Hello, > > I need to invoke trust command but from linux shell. I was thinking that > this will do: > gpg --edit host_name trust 3 > > to set my trust marginal for host_name, but it didn't, it took me to the > gpg command line. > > I need this becouse I'm currently writing program that is using gpg. It's > in C so making it to write to stdin of gpg would be a lot of fuss, as a > command line I can simply use system function. > > So my question is is it possible?? If yes how?? > > Regards, > Piotr Bratkowski > > _______________________________________________ > Gnupg-users mailing list > Gnupg-users@gnupg.org > http://lists.gnupg.org/mailman/listinfo/gnupg-users > -- Thanks, Regards, Rahul R Mob: 09008030921
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users