Does anyone have any idea how to pass arguments to a script which is invoked from inside our C code....
I have a script ( e.g Tcl script )
Usually i invoke the tcl script using tclsh file.tcl arg1 arg2...argN
Now i am trying to call this script from a C program.
I have tried :
- system(""); but this doesn't have the flexibility of customized arguments
- i also try to use execl, execlp and other variance of exec...it either called the script and terminated directly or doesn't call the script at all...
Anybody know if there is other methods?