#include"myHeader.h"
main(int argc,char **argv)
{
int i;
for(i=1;i<argc;i++)
{
system(argv[i]);
}
printf("task completed...\n");
}
OutPut:madan@madan-Lenovo-G570:~/madan/osconcepts$ cc ex9.c
madan@madan-Lenovo-G570:~/madan/osconcepts$ ./a.out cal date madan
April 2014
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Fri Apr 4 07:12:10 IST 2014
sh: 1: madan: not found
task completed...





