Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: sending hexadecimal data via telnet

by aitap (Deacon)
on Aug 07, 2012 at 13:25 UTC ( #985983=note: print w/ replies, xml ) Need Help??


in reply to sending hexadecimal data via telnet

Or use pack to transform arbitrary hexademical numbers into bytes. For example:

$ echo -n deadbeef | perl -pe's/([[:xdigit:]]{2})/pack("H2",$1)/ge' | +xxd 0000000: dead beef ....
Sorry if my advice was wrong.


Comment on Re: sending hexadecimal data via telnet
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985983]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-12-29 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (192 votes), past polls