Hi All,<br><br>Just to update here that I found the solution.<br><br>do<br><pre>export REQUEST_METHOD=GET<br>export QUERY_STRING=name=value<br>./script.cgi<br><br>Regards,<br><br></pre><br><div class="gmail_quote">On Tue, Jun 8, 2010 at 3:37 PM, Vinod Sharma <span dir="ltr">&lt;<a href="mailto:vk.kaushik2006@gmail.com">vk.kaushik2006@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All,<br><br>I am using below rrdcgi script to display my graphs on webpage. It works fine when i pass the name=value pairs with my server name i.e. &quot;<a href="http://www.server.com/cgi-bin/rrdcgi.cgi?host=A1" target="_blank">http://www.server.com/cgi-bin/rrdcgi.cgi?host=A1</a>&quot;.<br>

<br>But when i try to execute this from command line it is not readting the name=value paris. i.e. &quot;$./rrdcgi.cgi host=A1&quot;<br><br>Code:<br>==============================<br>#!/usr/bin/rrdcgi<br>&lt;html&gt;<br>
&lt;head&gt;<br>
&lt;title&gt;Graphs&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;RRD::INCLUDE rrd.config&gt;<br>&lt;RRD::GRAPH<br>        &lt;RRD::GETVAR PATH&gt;/img/&lt;RRD::CV host&gt;.png<br>        --title=&quot;Load For &lt;RRD::CV host&gt;&quot;<br>

        -w 1048 -h 266<br>        --end=midnight<br>        --start=end-1d<br>        --imginfo &#39;&lt;IMG SRC=&lt;RRD::GETVAR PATH&gt;/rrdimg/%s WIDTH=%lu HEIGHT=%lu &gt;&#39;<br>        DEF:l=&lt;RRD::GETVAR PATH&gt;/host_&lt;RRD::CV host&gt;.rrd:load:AVERAGE<br>

        LINE2:l#0000ff:Load<br>&gt;<br>========================================<br>Please suggest what I am doing wrong.<br><br><br>
</blockquote></div><br>