LinuxQuestions.org
Help answer threads with 0 replies.
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, 12:21 PM   #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, 12:48 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,350

Rep: Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908
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


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 On
HTML code is Off



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

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

All times are GMT -5. The time now is 11:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration