<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: repctl.sh importlicense format in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877979#M1580</link>
    <description>&lt;P&gt;You should be able to use any scripting / editing language of your choice to transform a text style license to JSON.&lt;/P&gt;
&lt;P&gt;The biggest 'trick' is that the various values need to be inside a block labeled:&amp;nbsp;"cmd.license": {&amp;nbsp; &amp;nbsp;...&amp;nbsp; &amp;nbsp;}&lt;/P&gt;
&lt;P&gt;Below an example I named make_license_json.pl in Perl&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hth,&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#
# Usage: 
# Step 1: &amp;gt;&amp;gt; perl make_license_json.pl license.txt &amp;gt; license.json
# Step 2: &amp;gt;&amp;gt; repctl [-d &amp;lt;replicate_data_dir&amp;gt;] importlicense license_file=&amp;lt;location&amp;gt;license.json
#
# Enjoy! Hein van den Heuvel
#
$comma = q();              # Will become a a comma
for (&amp;lt;&amp;gt;) {
	next if /^\s*#/;       # Comment?
	if (/license_type=/) { # Looks like a license file?}
		$license=1;
		print qq({\n\t"cmd.license":\t{);  # Open up the JSON structure
	}
	next unless $license and /=/;
	chomp;                 # Remove New-line
	s/=/":"/;
	print qq(${comma}\n\t\t"${_}");
	$comma = q(,);         # Now it must become real
}
print qq(\n\t}\n}\n);      # And close the JSON structure&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 06 Jan 2022 13:34:37 GMT</pubDate>
    <dc:creator>Heinvandenheuvel</dc:creator>
    <dc:date>2022-01-06T13:34:37Z</dc:date>
    <item>
      <title>repctl.sh importlicense format</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877933#M1574</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We have a perpetual license for Qlick Replicate that I would like to be able to register automatically in an ansible jobs (like you already have in your dockerfile construction script.&lt;/P&gt;
&lt;P&gt;This license is in txt format but it seems that "repctl.sh importlicense ..." needs a json format isn't it ?&lt;/P&gt;
&lt;P&gt;Could you tell me the exact format needed please ?&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jerome&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 11:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877933#M1574</guid>
      <dc:creator>jrevillard</dc:creator>
      <dc:date>2022-01-06T11:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: repctl.sh importlicense format</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877936#M1575</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142349"&gt;@jrevillard&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, the command line request a JSON format.&lt;/P&gt;&lt;P&gt;Can you please send the license file (&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;by private message!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;) to me ? I can try to convert it to JSON.&lt;/P&gt;&lt;P&gt;BTW, let me know your Replicate Version.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 11:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877936#M1575</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-01-06T11:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: repctl.sh importlicense format</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877965#M1578</link>
      <description>&lt;P&gt;Private message sent &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt; . Thanks for your help !&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 13:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877965#M1578</guid>
      <dc:creator>jrevillard</dc:creator>
      <dc:date>2022-01-06T13:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: repctl.sh importlicense format</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877979#M1580</link>
      <description>&lt;P&gt;You should be able to use any scripting / editing language of your choice to transform a text style license to JSON.&lt;/P&gt;
&lt;P&gt;The biggest 'trick' is that the various values need to be inside a block labeled:&amp;nbsp;"cmd.license": {&amp;nbsp; &amp;nbsp;...&amp;nbsp; &amp;nbsp;}&lt;/P&gt;
&lt;P&gt;Below an example I named make_license_json.pl in Perl&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hth,&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#
# Usage: 
# Step 1: &amp;gt;&amp;gt; perl make_license_json.pl license.txt &amp;gt; license.json
# Step 2: &amp;gt;&amp;gt; repctl [-d &amp;lt;replicate_data_dir&amp;gt;] importlicense license_file=&amp;lt;location&amp;gt;license.json
#
# Enjoy! Hein van den Heuvel
#
$comma = q();              # Will become a a comma
for (&amp;lt;&amp;gt;) {
	next if /^\s*#/;       # Comment?
	if (/license_type=/) { # Looks like a license file?}
		$license=1;
		print qq({\n\t"cmd.license":\t{);  # Open up the JSON structure
	}
	next unless $license and /=/;
	chomp;                 # Remove New-line
	s/=/":"/;
	print qq(${comma}\n\t\t"${_}");
	$comma = q(,);         # Now it must become real
}
print qq(\n\t}\n}\n);      # And close the JSON structure&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Jan 2022 13:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877979#M1580</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-01-06T13:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: repctl.sh importlicense format</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877995#M1581</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142349"&gt;@jrevillard&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Sorry I just come back from a 2 hours remote session.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's great&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;is around here and provide a great option. thank you so much.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 14:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1877995#M1581</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-01-06T14:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: repctl.sh importlicense format</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1878002#M1582</link>
      <description>&lt;P&gt;Thanks to both of you ! I will try it as soon as possible.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jerome&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 14:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/repctl-sh-importlicense-format/m-p/1878002#M1582</guid>
      <dc:creator>jrevillard</dc:creator>
      <dc:date>2022-01-06T14:19:42Z</dc:date>
    </item>
  </channel>
</rss>

