title: Running a script from execl()
body: <p>I want to use <code>execl()</code> to start a script that has no execution rights. When done from the commandline, this works fine:</p>
  
  <pre><code>[bf@bf-laptop-tbwb playground]$ /bin/sh test.sh
  I run !
  </code></pre>
  
  <p>However, when I want to use <code>execl</code> from C, it just starts another shell, without running my script.</p>
  
  <pre><code>int main(int argc, char **argv) {
    execl("/bin/sh", "/home/bf/playground/test.sh", NULL);    
    return 0;
  }
  </code></pre>
  
  <p>I cannot just run the script, because I have no guarantee the script is executable (it is on an embedded device, that gets loaded with FTP scripts).</p>