Hi.
I made a configuration html page (+cgi) through wich i can change some settings on my digi (writing to some files).
Now i want to also remotely change the IP address and remotely reboot my digi!
i tried for IP address:
Code:
//deviceIpAddress is s string parameter that i get if from cgi input
sprintf(str,"PATH=$PATH:/sbin ifconfig eth0 %s etmask255.255.255.0 up\n\r",deviceIpAddress);
system(str);
and for reboot:
..but it's not working! Probably because i don't have rights to do this..
Can some one help me?
Klemen