Thank you very much, it worked.
Yes, I will use it with execve :=). I have an assignment about creating a shell terminal executing shell commands with parameters, using execve command.
In your code, could you tell me why do I need to use double pointer, **args? And I hope any error won't appear when I use it like execve(pathname, args, NULL); because of it is a double pointer... (I didn't have enough time to check this in the lab, will try it tomorrow..)
Last edited by haydari; 04-09-2007 at 09:01 PM.