Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.041 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.02; 'subject:: [': 0.04; 'newline': 0.09; 'subject:trying': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'subject:] ': 0.20; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'jean': 0.31; 'received:google.com': 0.35; 'thanks': 0.36; 'issue': 0.38; 'pm,': 0.38; '12,': 0.39; 'changed': 0.39; 'mentioned': 0.61; 'to:none': 0.92; 'reply,': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=WBoExvMJchI4lJS0+TsjzzL51ZhgA1N7z9lL+hBpVIY=; b=gL8OwtzXEmLeATwf0PSt5YH/aObruGaZewJF3lvsSegx4aLBfYhlfomWiXOmSD5szx mFgs3LsXdSdhS1B/MQwjuIKG8TDdwj+4UjNYMPE+XsQqG/1qRGhVu/N/yAulC75nPe4q bq7SF2UM4rIR7uNrFRRVDVpWBaYxIcgPftyRo4lGm6BvVzkT7bExbz1IO6XMcjUxGN9o irUHcofxQfAGTmcGH5m4Nkiu1zWSLOp0DYzZZrxNF6/5oMg9EkUzgKMRJwZsLdJAtR7h KnMGZ9bi3ggbE8q7yfng+v+ioz2EJU8HxYgQqAttwjGP79PIhy9ThD3CJjbn0Zkf9NTu NIIQ== MIME-Version: 1.0 X-Received: by 10.68.228.97 with SMTP id sh1mr9709732pbc.50.1386836493008; Thu, 12 Dec 2013 00:21:33 -0800 (PST) In-Reply-To: <0b1e5e56-0296-4785-b3f2-b123131d8cae@googlegroups.com> References: <87zjo7dkm3.fsf@conorh.net> <0b1e5e56-0296-4785-b3f2-b123131d8cae@googlegroups.com> Date: Thu, 12 Dec 2013 19:21:32 +1100 Subject: Re: [newbie] trying socket as a replacement for nc From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386836496 news.xs4all.nl 2920 [2001:888:2000:d::a6]:39327 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61679 On Thu, Dec 12, 2013 at 7:08 PM, Jean Dubois wrote: > Thanks for the reply, I changed the line you mentioned to > s.send('*IDN?\n') See if there's a newline issue - you might need \r\n here. ChrisA