|
Hi to all
Pls, help me in solving the problem execv() function.
My working environment is Solaris and solaris c compiler.
Can any one tell me how to use execv() function in c.
Following is the sample code:
main()
{
char a[][60]={"sample.sh", "one", "two", "three"};
execv("sample.sh", a);
}
but it gives error like "Bad Address"
Pls can any one help me out in this regard.
Thanks in advance
|