13

how to pass the command line arguments to the shell script in c language

view full story
linux-howto

http://www.unix.com – hi, I am new in the shell script, and c programming with linux. I am looking to pass the arguments in c program that should be executed by the shell script. Code: e.g. #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) {      int i;         for (i=1;i<argc; i++)         {                 return system("/bin/migrate argv[i]"); <--- keep attention here         }         return 0; } here the migrate is shell s (HowTos)