i just want to create a simple program which can monitor internet connection. The problem is it don\'t print any result. Just like nothing happen. But if i use terminal i ca