#!/bin/sh /opt/tenminutecore/script/tenminutecore.sh
process.start("yourscriptname.sh");
pid_t pid = fork(); if (pid == 0) { // We're inside the child process execl( "/bin/sh", "/bin/sh", "/opt/tenminutecore/script/tenminutecore.sh", NULL); } // If we reach this point, we are inside the parent process. // So, we'll wait for the child process to complete: int *stat_loc = NULL; waitpid(pid, stat_loc, 0);