Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send a message with ping?

Tags:

ping

icmp

The Ping command uses an ICMP request as far as I know

So is it possible to send a short text with the ping command right from commandline?

like image 523
derich Avatar asked Aug 06 '15 13:08

derich


1 Answers

What about ping -p pattern? Keep in mind that not all of versions of ping support -p option.

You may specify up to 16 ''pad'' bytes to fill out the packet you send. This is useful for diagnosing data-dependent problems in a network. For example, -p ff will cause the sent packet to be filled with all ones.

E.g. ping -p 486920686572652e www.example.com, where 486920686572652e = Hi here.

like image 192
Kristian Vitozev Avatar answered Sep 28 '22 10:09

Kristian Vitozev