I have following code that execute .ksh successfully. My issue is, after executing ksh script, it does not return to C++ program to do my print. Therefore "ksh was executed" never gets printed. Can someone please show me what I need to do to make program comes back after executing .ksh script?
Please note reset is a .ksh.
bool System::test()
{
execl("/bin/sh","/bin/sh","reset");
print("ksh was executed \n");
return(1);
}