<br clear="all"><font face="Courier">I have following two python scripts <br>-namelookupWrapper.py <br>-namelookup.py <br></font>
<p>The namelookupWrapper.py takes input of "memberId", "memberName" from <br>CLI and has following code snippet <br>
<p>idf = sys.argv[1] <br>namef = sys.argv[2] <br>real_script = "C:\\Splunk\\etc\\apps\\search\\bin\\namelookup.py" <br>r = csv.reader(sys.stdin) <br>os.execv(python_executable, [ python_executable, real_script ] + <br>
sys.argv[1:] ) <br>
<p>Wondering how would i pass csv reader object "r" as an argument using <br>os.execv() to another python script i.e. namelookup.py <br><span style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif">Regards, </span><br style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif">
<span style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif">Bansi</span><br style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif"><span style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif">-----------------------------------------------------</span><br style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif">
<span style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif">Bansilal Haudakari</span><br style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif"><span style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif">SUN Certified Enterprise JAVA Architect / Programmer</span><br style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif">
<span style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif"><a href="http://bansihaudakari.wordpress.com/" target="_blank">http://bansihaudakari.wordpress.com/</a></span><br style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif">
<span style="COLOR: rgb(0,0,102); FONT-FAMILY: georgia,serif">L:703-445-2894</span><br></p></p></p>