Ben
2004-09-22 14:20:07 UTC
Hello,
I'm having a little bit of trouble with the execvp command. If my
understanding is correct, it takes in two parameters: the first is the
command that the user wants to execute and the second is an array of
arguments which that command will use.
It makes sense in cases where there are arguments, but what about when
there are not? For instance, what do I feed in as the second
parameter if I want to do a 'ls'?
I'd appreciate any help.
Thanks,
Ben
I'm having a little bit of trouble with the execvp command. If my
understanding is correct, it takes in two parameters: the first is the
command that the user wants to execute and the second is an array of
arguments which that command will use.
It makes sense in cases where there are arguments, but what about when
there are not? For instance, what do I feed in as the second
parameter if I want to do a 'ls'?
I'd appreciate any help.
Thanks,
Ben