title: Activate driver from C/C++ program Debian
body: <p>Trying to activate a GPIO driver from within a C/C++ program for BeagleBone Black-Debian.  Instead of activating the driver I get this error message "sh: 1: cannot create /sys/devices/bone_capemgr.<em>/slots: Directory nonexistent"  If I type "echo cape-bone-iio > /sys/devices/bone_capemgr.</em>/slots" directly in the SSH terminal it works fine.  Any insights are appreciated.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
    {
    printf( "Activate Analog GPIO driver\n" );
    system( "echo cape-bone-iio &gt; /sys/devices/bone_capemgr.*/slots" );
    printf( "done\n" );
    return 0;
    }
  </code></pre>