LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shell script to connect with remote Port and send simple TCPIP Socket (https://www.linuxquestions.org/questions/linux-newbie-8/shell-script-to-connect-with-remote-port-and-send-simple-tcpip-socket-4175597283/)

eco_bach 01-12-2017 07:10 AM

Shell script to connect with remote Port and send simple TCPIP Socket
 
Hi
For testing purposes I need to create a shell script that connects with a remote IP>Port and sends a simple text TCPIP Socket message.

Can anyone help?

Turbocapitalist 01-12-2017 07:21 AM

How far does netcat aka nc get you?

rtmistler 01-12-2017 07:40 AM

People can, and absolutely will help, however not to the tune of providing. Note Turbocapitalist's suggestion for a command you can start with, within any script.

As you know, LQ members are volunteers and more importantly, the intentions of the site are to help you to learn the tools you need to accomplish your goals. Thus you learn Linux and shell scripting well enough to hopefully contribute ideas and assistance to others.

What shell language do you think you wish to create your script using?

Have you started a shell script, or do you have any experience with shell scripting?

Do you know what to do with a shell script once you've created a file? Such as how to make it executable, or some methods how to debug one?

If the answers are "no" for most of those questions, then members here are best advised to first help you select a shell script language which is appropriate for your efforts and then also advise you about the basics to creating and debugging shell scripts.

Habitual 01-12-2017 07:53 AM

I haz toaster.


All times are GMT -5. The time now is 02:52 PM.