Skip to content
Advertisement

Tag: ping

Ping program implementation in C about recvfrom() doubts

I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this. I have finished writing the program, and today when I tested the ping loopback address, after sending the packet, the function recvfrom() received the “first” packet (type 8), and the second recvfrom() received the response packet

Python Subprocess ping -h Returns Exit Status 2

I want to capture ping -h output using Python, it results in exit status 2. I am working on a Linux host. This is the output The command seems to execute normally on the shell. What is the cause of this error? How can I fix it? Answer Following Barmar solution It is a normal behavior for ping, but the

How to be notified when IP is up?

I would like to ping a IP-Adress an want to be notified. System: Linux Fedora. Has anybody a idea or a Software? Answer Use this shell script. Found on http://jeromejaglale.com/doc/unix/shell_scripts/ping Put the ping in a loop or run the script with cron. Instead of echoing you can send a notification.

Advertisement