Clarifications
- Some explanation about dup2 is added to the assignment (no major change). (Feb 18).
- It may be easier to use execvp() call.
- Use dup2 after fork and before exec. That means do the I/O redirection in a child process (not parent).
- fgets can be used to read a line of input. Then you can parse it to obtain the substrings (for example charter by character).
-