http://www.perlmonks.org?node_id=1035233


in reply to Re: How to add payload in raw socket
in thread How to add payload in raw socket

Hi,

I have one user equipment. and want to send some command on it and get the response on the host machine.

there is only one way to make a connection with UE is Raw socket connection. so i am exploring the things in perl but not getting the right way to do so.

Please suggest me the right way to do so.

Thanks in advance

Replies are listed 'Best First'.
Re^3: How to add payload in raw socket
by marto (Cardinal) on May 25, 2013 at 07:14 UTC

    I see you have several previous questions on the same subject (for example Raw socket Connection.). If the method suggested here does not work, you're going to have to be more specific. Give us the details needed to help. What is this device you are trying to communicate with? Which operating system does it run? Which operating system does your computer (which you will use to communicate with this equipment) run? How do I post a question effectively? has more advice.

      I have one device from "Aeroflex". and trying to connect this device from Fedora through raw scoket connection . i am able to to so manually means trough putty. but want to do so through script.

      So, please suggest me

        If you can connect through PuTTy, you do not need "raw sockets". Putty only speaks "Telnet", "SSH" and a plain TCP connection. All of those are available through Net::Telnet, IO::Socket or Net::SSH2.

        Can you provide a link to the device, like a manufactures web page? How are you connecting via putty, telnet/ssh?