Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'context': 0.05; 'received:internal': 0.09; 'suggestions:': 0.09; 'django': 0.10; 'subject:not': 0.11; 'django?': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:mail.srv.osa': 0.16; 'received:messagingengine.com': 0.16; 'received:nyi.mail.srv.osa': 0.16; 'received:osa': 0.16; 'received:srv.osa': 0.16; 'roy': 0.16; 'ssh': 0.16; 'stuff.': 0.16; 'wrote:': 0.17; 'hacking': 0.17; 'smallest': 0.22; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'lines': 0.28; 'fri,': 0.30; 'code': 0.31; 'problem.': 0.32; 'running': 0.32; 'to:addr:python-list': 0.33; 'involving': 0.35; 'subject:?': 0.35; 'something': 0.35; '(i.e.': 0.36; 'possible': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'received:10': 0.38; 'page': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'skip:u 10': 0.60; 'header:Message-Id:1': 0.62; 'behavior': 0.64; 'gave': 0.65; 'smith': 0.71; 'article': 0.78; '(is': 0.84; 'demonstrates': 0.84; 'subject:any': 0.84; 'view;': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=smtpout; bh=rqxCfskwG7/iz/LsVgaJZChaSKc=; b=AVqjU zo38gUP7MAR51kGBvrBcYsmkzpg0D2ZLmHUviKge7VFsdGVVMNtWJK7/ozawnLSl NI31oVb3zq7wtDNUv5ZZCu0N1GuWfpQxXagMIXMVV1ISJNwiW/N4GTbkEAtI7QvZ db8d26w3tpS3jKvdyvcfpAq4Vz5M4mCSaaaCPo= X-Sasl-Enc: jq6o+1Vv9KkUhUaIQEa5sgrPlyj9PXNBZHbxF8TPiKSl 1362149974 From: "marduk@python.net" To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-f65d5eaf Subject: Re: os.system() not responding on django... any reason? Date: Fri, 01 Mar 2013 09:59:34 -0500 In-Reply-To: References: <4fcc93b7-3be9-416f-a2d4-bdc6cba2133e@googlegroups.com> 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362149982 news.xs4all.nl 6840 [2001:888:2000:d::a6]:37798 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40260 On Fri, Mar 1, 2013, at 09:24 AM, Roy Smith wrote: > In article <4fcc93b7-3be9-416f-a2d4-bdc6cba2133e@googlegroups.com>, > Jaiky wrote: > > [a lot of code involving ssh and paramiko] > > Here's a few general suggestions: > > 1) Try to reduce this to the smallest possible amount of code which > demonstrates the problem. You gave us a page full of complicated stuff. > Keep hacking away lines of code that don't change the behavior until you > get it down to something small and understandable. > > 2) Try to eliminate environmental problems. You're running this under > django? Does it work as a stand-alone process (i.e. without django)? Also, what is the context (Is it running in a Django view; a model? a signal handler? in settings?)?