Usage:

execl(full_pathname, runas, arg1, arg2, ..., NULL)

in this case:

full_pathname = /bin/ifup
runas = ifup
arg1 = eth0

Regards,
T.

Am 27. August 2015 16:40:49 MESZ, schrieb Edward Bartolo <[email protected]>:
>I added another function to core_functions.c. It attempts to connect
>to eth0 but for some weird reason, probably a bug not from our part,
>it is failing.
>
>The function is:  int connectWired(const char ethx)
>
>And the error is: (passed command to execl is "ifup eth0")
>"This command should be called as ifup, ifdown, or ifquery"
>
>Any pointers as to what is the cause are appreciated.
>
>Edward
>
> [...]

_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to