Hello everyone, I am curently trying to make some script to auto install tinc 1.0.25 on linux servers. I have some problem with the tincd -n -K to generate the key pairs because he ask me to validate the files used for the keys.... I have read the man page but I didn't find how to validate this files without any prompt... Is there any switch option for this ? Or any solution ? Thanks a lot. Sich
On Sun, Dec 28, 2014 at 12:25:05PM +0100, Sich wrote:> I am curently trying to make some script to auto install tinc 1.0.25 on > linux servers. > I have some problem with the tincd -n -K to generate the key pairs because > he ask me to validate the files used for the keys.... > > I have read the man page but I didn't find how to validate this files > without any prompt... > > Is there any switch option for this ? Or any solution ?Tinc only asks for confirmation if it detects that stdin/stdout are to an interactive terminal. Just redirect stdin from /dev/null and it will not ask for confirmation anymore: tincd -n <netname> -K </dev/null For tinc 1.1 there is a --batch option that has the same effect. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20141228/14703c5a/attachment.sig>
Thanks it work fine ! :) Le 28/12/2014 12:48, Guus Sliepen a ?crit :> On Sun, Dec 28, 2014 at 12:25:05PM +0100, Sich wrote: > >> I am curently trying to make some script to auto install tinc 1.0.25 on >> linux servers. >> I have some problem with the tincd -n -K to generate the key pairs because >> he ask me to validate the files used for the keys.... >> >> I have read the man page but I didn't find how to validate this files >> without any prompt... >> >> Is there any switch option for this ? Or any solution ? > Tinc only asks for confirmation if it detects that stdin/stdout are to > an interactive terminal. Just redirect stdin from /dev/null and it will > not ask for confirmation anymore: > > tincd -n <netname> -K </dev/null > > For tinc 1.1 there is a --batch option that has the same effect. > > > > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc-------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20141228/f281b7ea/attachment.html>