Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.042 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'received:mail- vb0-f46.google.com': 0.09; 'that).': 0.09; 'sat,': 0.15; 'command:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'nightmare': 0.16; 'pipes': 0.16; 'wrote:': 0.17; 'processor': 0.17; 'received:209.85.212.46': 0.18; 'feb': 0.19; '(not': 0.20; 'file.': 0.20; 'parse': 0.22; 'pipe': 0.22; 'external': 0.24; 'command': 0.24; 'script': 0.24; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'ibm': 0.27; 'message- id:@mail.gmail.com': 0.27; 'lines': 0.28; 'received:209.85.212': 0.28; 'push': 0.30; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'text': 0.34; 'received:209.85': 0.35; 'next': 0.35; 'except': 0.36; 'but': 0.36; "didn't": 0.36; 'too': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'end': 0.40; 'your': 0.60; 'easy': 0.60; 'real': 0.61; 'first': 0.61; 'between': 0.63; 'subject:...': 0.63; '2013': 0.84; 'heh.': 0.84; 'dennis': 0.91; 'piping': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=2AaKbpHv7C4j32nZCVNCbRjaAUl/pNYpbhvzPH+sKUc=; b=bPC/xTK1k3VVXmv8qlhMGYtvPWEcLFtyi6d9eyRynsv1nuz00SpT5mjlzdy/P/htnv 6+OXtUFYFZe/Dtyk2nrWJCIjW70PyGjLL2jnA1Za/3X5igwBvj8ZONhgcVp2DnRvDzYh LbqUgGM3ixAIroluPc9CYSj65XWrCaCNM7CbeGQiIWHwx+xG00MteHsNSs86s7dg9yqy 096EmXVV+d2oOqYYlOuEo2BaSD2mM8RpjbhVHvv6IWydOMvnN6XTiU24cVXC8Tw6Z9M1 //OUdUopCydTAU7vvlHB8sg8WIZ65fynNxoviXDo6D7WisqwIirN0pjvtUFmRqEPlStc ZfeA== MIME-Version: 1.0 X-Received: by 10.58.12.200 with SMTP id a8mr9183958vec.52.1360369687008; Fri, 08 Feb 2013 16:28:07 -0800 (PST) In-Reply-To: References: <5111b826$0$29969$c3e8da3$5496439d@news.astraweb.com> <5112eb4a$0$29965$c3e8da3$5496439d@news.astraweb.com> <51134e9f$0$21812$c3e8da3$76491128@news.astraweb.com> <511431a3$0$29966$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 9 Feb 2013 11:28:06 +1100 Subject: Re: Opinion on best practice... From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360369696 news.xs4all.nl 6955 [2001:888:2000:d::a6]:44246 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38482 On Sat, Feb 9, 2013 at 5:29 AM, Dennis Lee Bieber wrote: > If you want the real nightmare -- look into the IBM "queue" scheme > (not many REXX implementations except on IBM mainframes support that). > One can push lines onto the queue, such that when the script exits, the > command processor reads those lines first before reading from > keyboard... Or push lots of text in a way that the next script to start > reads it without using a temporary file. IBM mainframes didn't > "multitask" too well ; no easy creation of processes with pipes > between them. Heh. The OS/2 implementation of REXX has that too, but also has much easier piping mechanisms... and, ironically, provides a convenient way to pipe text into your script using the RXQUEUE external command: "some_command | rxqueue /fifo" do while queued()>0 parse pull blah blah blah end ChrisA