LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 02-24-2011, 11:21 AM   #1
wjsx9999
LQ Newbie
 
Registered: Feb 2011
Location: USA
Distribution: Debian, OpenWRT
Posts: 3

Rep: Reputation: 0
problem with netcat (nc)


Hi. I'm brand new to the linuxquestions site. So if I'm in the wrong location for this question, please recommend where I should ask it.

I can't figure out why an invocation of netcat (nc) within the dash shell used by my Debian distro doesn't return me to the shell prompt after a query. The very same command works fine within a Busybox shell.

The entry is:
echo "status" | localhost 6600
which is a status request from a local mpd server.

It provides an appropriate response, but then stops and waits rather than returning me to the system dash prompt.

The response is:
OK MPD 0.15.0
volume: 61
repeat: 0
random: 0
single: 0
consume: 0
playlist: 2
playlistlength: 0
xfade: 0
state: stop
OK

which is a correct response, but the only way I've found to exit nc is with a CTL-C.

I'm expecting it to be something very simple, but I can't figure it out.

Thanks in advance for whatever advice you may have.
 
Old 02-24-2011, 11:48 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

continue here:
http://www.linuxquestions.org/questi...cat-nc-864774/
 
  


Closed 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with netcat (nc) wjsx9999 Programming 2 02-24-2011 04:33 PM
Telnet | Netcat problem alee Linux - Newbie 2 03-18-2010 03:23 PM
netcat -e Devilz Linux - Networking 5 01-03-2008 02:05 AM
problem with netcat in knoppix homy Linux - Networking 4 02-16-2007 10:58 AM
Netcat s0n|k Linux - Newbie 3 04-16-2006 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:13 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