Send Carriage return

2

280SEL

Hello:

I hope that someone can set me on the right track with this:

I am trying to establish a Heartbeat with a remote machine using Perl.
I am sending a string like so:

print $socket "$output";

In order to keep the line open, the remote machine wants a carriage
return at the end (HEX 0D).

I have tried the perl \n, I have tried all kinds of ways , including:

$output=$string.hex'0D';
print $socket "$output";

This, of course, translates the hex carriage return into Decimal 13
and sends that number which doesn't help.

Does anybody know how to do this?

Any help would be greatly appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top