LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2017, 07:10 AM   #1
eco_bach
Member
 
Registered: Dec 2016
Posts: 242

Rep: Reputation: Disabled
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?
 
Old 01-12-2017, 07:21 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 5,690
Blog Entries: 3

Rep: Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920
How far does netcat aka nc get you?
 
Old 01-12-2017, 07:40 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,357
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
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.
 
Old 01-12-2017, 07:53 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I haz toaster.
 
  


Reply

Tags
socket, tcpip


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] remote-viewer, spice, QEMU and Unix domain socket - how to connect? atelszewski Linux - Virtualization and Cloud 2 02-12-2016 10:28 AM
c programming - socket 'connect' returns 0 even on invalid port bill_nimmo Programming 12 04-28-2015 10:42 AM
how to connect to a remote machine using tcp socket sangupari Linux - Networking 3 03-03-2010 11:11 PM
i want to connect mysql server from remote through TCP/IP not by unix socket dheerajjss Linux - Newbie 1 11-10-2008 06:32 AM
How to connect server with muliple port via socket husniteja Programming 0 08-21-2004 02:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration