Do you want to execute a shell script or shell command in ac program?

The Following is a simple c -program with the execution of a script:

#include <stdio.h>

int main (void)
{
    system ( "/boot/home/Desktop/script.sh" ) ;
    return 0;
}

The system () command runs a program or script from the system. "Here" you need to add the string to run your shell tool or script.

Tutorial By Christian Albrecht, July 2017
Made available by BeSly , the Haiku knowledge base.