Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: Disabled
Shell script to connect with remote Port and send simple TCPIP Socket

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
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,386
Blog Entries: 3

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

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
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
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I haz toaster.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 PM.

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