The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help with shell program adgarg Shell Programming and Scripting 3 10-31-2007 06:54 AM
shell program rameshparsa Shell Programming and Scripting 1 11-17-2005 01:18 PM
Shell Program TexasGuy High Level Programming 3 03-12-2005 02:11 AM
Help me with this Shell Program TRUEST Shell Programming and Scripting 1 04-08-2002 11:58 AM
shell program nageshrc UNIX for Advanced & Expert Users 2 11-27-2001 12:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-18-2009
nsharath's Avatar
nsharath nsharath is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 79
Smile sockets using SHELL program

Hello sir.
I could establish the connection between any 2 systems in LAN using Socket Class in Java. I would like to learn more and know how to connect to other users in the LAN and send the messages using the shell instead of java..........
  #2 (permalink)  
Old 03-18-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,846
UNIX/Linux shells usually do not have native support for socket programming (although bash and some versions of ksh do, mostly on Linux).

You could try to use netcat, as it can work both as a server and a client and supports piping to/from other programs/file descriptors.
  #3 (permalink)  
Old 03-18-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,923
Never used it myself but I understand from the man page that ksh93 has built-in support
for direct socket access provided your platform supports sockets in the form /dev/tcp
/hostid/portid and /dev/udp/hostid/portid where hostid is the dotted decimal number of
the host and portid is the port the server is listening on.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0