I'm writing C program that do the following:
will creat new sample command in unix using C
let be the name is do.c, the do must execute more the one command
for example do ls ps
it will execute ls the ps
also I should create a log file the track the command and exit status of each one
how I can do that beacuse I don't know who to start(new in UNIX and C programming)...
I want the idea to program it
should I use int main (int argc, char *argv[])???
what argc store??? is it the number of arguments enterd??
what argv[] store?? the arguments sepreated with space??