--- In [email protected], "hoorn666" <[EMAIL PROTECTED]> wrote: > I am using a foxboard with an alternate IP address. I can change it at > run time from de console or in the net.eth0 at boot time. Now i am > wondering how to change it from an executable. I tried the following: > > char *cmd[]={"ifconfig", "eth0" , "192.168.1.91", (char *)0}; > execvp("ifconfig",cmd); > > but no succes. I presume if I solved this if also can use route -n to > add a gateway. > > Any suggestions? Many thanks >
Try giving the full path to the executable, there is no PATH environment variable. Regards, Xavier
