I want to make a script like that getting the ping test and return value.
return value means, example " 172.10.50.3 ok"
i know, IEC61850 driver have a this function.
so, in driver, stats can have a value 0 to 3.
i need it like the function.
make sure ping test and get a ping is ok or not.
i did it as follow, but it return the value ok only.
Code: Select all
int main(){
int i;
char cmd[40];
char ret;
for(i=1; i