On Thu, 15 Dec 2016 10:52:05 +0100, Gert Doering wrote:

> A *tar* file is a container, that contains files plus header
> information.

I also tried the bz2 format just for testing, see the following commands:

$ diff vpngate_1.0.126.222_tcp_995.ovpn_JP <( bzcat 
vpngate_1.0.126.222_tcp_995.ovpn_JP.bz2 )
$

As you can see, there is no differences between the above two files.

Still, the process-substitution-based version will failed as follows:

$ sudo openvpn <( bzcat vpngate_1.0.126.222_tcp_995.ovpn_JP.bz2 )
Options error: In [CMD-LINE]:1: Error opening configuration file: /dev/
fd/63
Use --help for more information.
$ 

Any hints?

Regards
> 
> So "just unzipping the tar file" will never create a valid OpenVPN
> config.
> 
> It might work by unzipping a plain text file on-the fly, using the right
> shell variant that can do this sort of redirect.
> 
> But as said earlier, the benefits of using gzip'ed config files is
> minimal,
> given that the files are so small anyway.
> 
> gert





-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to