LinuxQuestions.org
(
/questions/
)
-
Programming
(
https://www.linuxquestions.org/questions/programming-9/
)
- -
C program to execute shell script
(
https://www.linuxquestions.org/questions/programming-9/c-program-to-execute-shell-script-764698/
)
baigmd
10-26-2009 11:01 PM
C program to execute shell script
Hi,
I am new...Can anyone give me a sample program to run shell script through C program.
Thanks
smeezekitty
10-26-2009 11:24 PM
easy
Code:
#include <Stdlib.h>
int main(){
return system (" <SHELL SCRIPT NAME HERE> ");
}
All times are GMT -5. The time now is
08:00 PM
.