![]() |
How to execute shell through C program
Hello expert
How to execute my own shell script through C program. waiting for reply.................. sachin |
Re: How to execute shell through C program
check execl(), pipe() system calls.
|
Re: How to execute shell through C program
You can execute like this :
system("mysh"); in unix operating system. mysh is the name of the shell script |
Re: How to execute shell through C program
in my experience, system() and execl() are the best ones to use. Make sure to raise their permissions before u execl them.
|
| All times are GMT +5.5. The time now is 12:48. |