AnsweredAssumed Answered

any programming example with Perl?

Question asked by edwin_me69 on Apr 13, 2018

Any example  in perl on how to connect via telnet?

use IO::Socket;

# Change to your instrument's hostname

my $instrumentName = "xxxxx";

# Get socket

$sock = new IO::Socket::INET ( PeerAddr => $instrumentName, PeerPort => 5024, Proto => 'tcp', );

die "Socket Could not be created, Reason: $!\n" unless $sock;


I can connect manually but with this script.