Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to execute shell through C program (http://www.go4expert.com/forums/execute-shell-c-program-t1005/)

pawarsac 13Jul2006 12:51

How to execute shell through C program
 
Hello expert
How to execute my own shell script through C program.
waiting for reply..................

sachin

salichos 25Jul2006 14:29

Re: How to execute shell through C program
 
check execl(), pipe() system calls.

sumtaru 17May2012 19:26

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

hRob 18May2012 16:07

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 22:02.