Set Proxy for Linux server by bash script failed : <p>I use the command below to set proxy in command line and it succeed:</p>

<pre><code>export http_proxy="http://proxy.company.com:8080/"
</code></pre>

<p>But When I use a bash script, below is the content of the script</p>

<pre><code>export http_proxy="http://proxy.company.com:8080/"
export https_proxy="http://proxy.company.com:8080/"

sudo yum list
</code></pre>

<p>And it failed. </p>

<p>Can anyone tell me the difference? </p>

<p>Thanks.</p>
