<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 2:17 PM, Mandeep Sandhu <span dir="ltr">&lt;<a href="mailto:mandeepsandhu.chd@gmail.com" target="_blank">mandeepsandhu.chd@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">&gt;<br>
&gt; error =  system(&quot;modprobe -rv A&quot;);<br>
&gt;<br>
&gt; This returns an error = 256.<br>
<br></div></blockquote><div>Hi Mandeep, </div><div><br></div><div>thanks for your mail </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">

</div>What does &#39;perror&#39; show (if anything) ?<br>
<br>
Also, if you try the same via a shel, whats the return value (&#39;echo<br>
$?&#39;) printed?<br>
<br></blockquote><div>echo $? show 1 (EPERM? most probably, operation not permitted for common module).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

BTW, why are you using the &#39;-v&#39; option when invoking modprobe programatically?<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>yes, -v option can be removed (behaviour is same even after removing -v option) </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888">
-mandeep<br></font></span></blockquote><div> </div></div>Thanks,</div><div class="gmail_extra">Chetan Nanda</div></div>