<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"><<a href="mailto:mandeepsandhu.chd@gmail.com" target="_blank">mandeepsandhu.chd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">><br>
> error = system("modprobe -rv A");<br>
><br>
> 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 'perror' show (if anything) ?<br>
<br>
Also, if you try the same via a shel, whats the return value ('echo<br>
$?') 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 '-v' 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>