Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If let's say I use ping command in the form of ping -p 'xyz' 1.1.1.1 can I read the pattern xyz on 1.1.1.1? Are there more ways in which you transmit data using ping command?

share|improve this question

migrated from stackoverflow.com Jan 1 '13 at 13:46

This question came from our site for professional and enthusiast programmers.

1  
What shell are you running this from? What OS are you using? And in what language do you want to retrieve the xyz parameter? Please elaborate! –  Oldskool Jan 1 '13 at 12:33
    
I'm using linux, using bash. Language does not matter as such. –  gizgok Jan 1 '13 at 17:47

1 Answer 1

If you run

tcpdump -A icmp

on 1.1.1.1 you'll see the ping packets and their data.

Read the man page for ping to see all the options.

share|improve this answer
    
Or any other network sniffer; e.g., Ethereal. –  Scott Jan 2 '13 at 0:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.