Question: 2) Write a simple C program myexec (source will be myexec.c) that will take a command (a program name) and its parameters and will execute

 2) Write a simple C program myexec (source will be myexec.c)

2) Write a simple C program myexec (source will be myexec.c) that will take a command (a program name) and its parameters and will execute that command with those parameters. For example: "myexec Is -al" will execute the ls command with -al options. Consider simple commands and programs with no redirections of input/output and with no pipes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!