How to execute shell through C program

Newbie Member
13Jul2006,12:51   #1
pawarsac's Avatar
Hello expert
How to execute my own shell script through C program.
waiting for reply..................

sachin
Newbie Member
25Jul2006,14:29   #2
salichos's Avatar
check execl(), pipe() system calls.
Light Poster
17May2012,19:26   #3
sumtaru's Avatar
You can execute like this :
system("mysh");
in unix operating system. mysh is the name of the shell script
Newbie Member
18May2012,16:07   #4
hRob's Avatar
in my experience, system() and execl() are the best ones to use. Make sure to raise their permissions before u execl them.