The code below will read in a file of commands that might look
something like this and fork child processes executing them. Let's
say we have a file named batch that looks like this:
the programming would be run with the following command.
./a.out 2 <batch
When I execute this program it will fork() the executable name
"some_executable" in this case but when it tries to fork the ls or ps
I get "ls command not found". I have my $PATH set /bin. Does anyone
know why it can't find ls? Am I doing the execv wrong?