<?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: Getting Environment Variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222671#M16182</link>
    <description>Hi,&lt;BR /&gt;how do you read the env. variable? could you post the code snipet? (+ platform, version,..)&lt;BR /&gt;Gabriel</description>
    <pubDate>Mon, 06 Aug 2012 14:28:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-06T14:28:41Z</dc:date>
    <item>
      <title>Getting Environment Variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222670#M16181</link>
      <description>I'm using Talend ESB Enterprise and am running a tJava that needs to look at an Environment variable. When I run it local on my machine I get the value no problem. When I push it to Karaf the value is null. I wrote some test code to make sure the value is set correctly on the bus and it is but whenever I run a job on Karaf I get null.</description>
      <pubDate>Sat, 16 Nov 2024 12:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222670#M16181</guid>
      <dc:creator>peterm1</dc:creator>
      <dc:date>2024-11-16T12:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Environment Variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222671#M16182</link>
      <description>Hi,&lt;BR /&gt;how do you read the env. variable? could you post the code snipet? (+ platform, version,..)&lt;BR /&gt;Gabriel</description>
      <pubDate>Mon, 06 Aug 2012 14:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222671#M16182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-06T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Environment Variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222672#M16183</link>
      <description>I'm trying to do just a simple getEnv. Do I need to do something different because it's using maven to run the job?&lt;BR /&gt;context.new1 = System.getenv("TEST");</description>
      <pubDate>Mon, 06 Aug 2012 14:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222672#M16183</guid>
      <dc:creator>peterm1</dc:creator>
      <dc:date>2012-08-06T14:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Environment Variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222673#M16184</link>
      <description>well, I expected a little bit more information. to help you. 
&lt;BR /&gt;- how do you set the env. variable? as a jvm parameter? as an env. system variable? 
&lt;BR /&gt;- what platform do you run on? did you export the env. variable? how do you start the esb runtime (bin/trun, bin/start, as a service?)? 
&lt;BR /&gt; have fun 
&lt;BR /&gt; Gabriel</description>
      <pubDate>Mon, 06 Aug 2012 15:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222673#M16184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-06T15:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Environment Variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222674#M16185</link>
      <description>I'm running the ESB on Ubuntu with JAVA 1.6 u32 and I am exporting the environment variable at the OS level. I've written a small test harness using java code to pull the variable and I get it through there but not the BUS. I start from bin/trun and no I am not pulling it in as a JVM paramater I should not half to since it is a System level variable System.getenv should work in that case. 
&lt;BR /&gt;So just to be clear and give you more info below is the set of the OS variable 
&lt;BR /&gt;export TEST=MYTESTVAR 
&lt;BR /&gt;JAVA code in talend job 
&lt;BR /&gt;context.new1 = System.getenv("TEST");</description>
      <pubDate>Mon, 06 Aug 2012 15:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222674#M16185</guid>
      <dc:creator>peterm1</dc:creator>
      <dc:date>2012-08-06T15:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Environment Variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222675#M16186</link>
      <description>Hi,
&lt;BR /&gt;indeed seems this way it doesn't work under linux
&lt;BR /&gt;If you have an enterprise edition, you may fill a support request if that's a blocker, (well, at the end of the day you will need env variables in production deployment ) until then let's find a workaround..
&lt;BR /&gt;Gabriel</description>
      <pubDate>Mon, 06 Aug 2012 19:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222675#M16186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-06T19:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Environment Variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222676#M16187</link>
      <description>Hi,&lt;BR /&gt;so - it works for me. You have to set env variables into  ~/.bashrc (so it will be available for new forks too)&lt;BR /&gt;&lt;PRE&gt;test=123&lt;BR /&gt;export test&lt;/PRE&gt;&lt;BR /&gt;you can reload envs as source ~/.bashrc&lt;BR /&gt;hope it helps&lt;BR /&gt;  Gabriel</description>
      <pubDate>Mon, 06 Aug 2012 20:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-Environment-Variable/m-p/2222676#M16187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-06T20:34:10Z</dc:date>
    </item>
  </channel>
</rss>

