Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed2a.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.066 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'remaining': 0.07; 'subject:file': 0.07; "wouldn't": 0.14; 'progression': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'meant': 0.20; 'header:User- Agent:1': 0.23; 'question': 0.24; 'source': 0.25; 'header:In- Reply-To:1': 0.27; 'feature': 0.29; 'dos': 0.30; "i'm": 0.30; 'pipe': 0.31; 'purely': 0.31; 'file': 0.32; 'stuff': 0.32; 'run': 0.32; 'running': 0.33; 'subject:from': 0.34; 'subject:?': 0.36; 'two': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'commands': 0.60; 'took': 0.61; 'charset:windows-1252': 0.65; 'received:74.208': 0.68; 'as:': 0.81; 'received:74.208.4.194': 0.84 Date: Sat, 09 May 2015 19:51:41 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Jython from bathc file? References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:yIDsPmb/DwsRJ8xx9uiTDGhmu/XEPZ6YrwiDGs/yMZlSSj+HRFa C8wcDJiuoVVCjzJlX6xZySgbYt89vNAe6L45647o4pX974V/48c0XcML1pOjyA0/xZmtvSe s79nc9N30ptIeSlxKC/BmC8PFIaVPJZmSvohDSlPAlJyH/XXK6/PswpmOM+sHl7W1WsZapW g3Qt9PPvwl9lHw8V3vHaA== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431215521 news.xs4all.nl 2884 [2001:888:2000:d::a6]:40147 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90251 On 05/09/2015 05:04 PM, vjp2.at@at.BioStrategist.dot.dot.com wrote: > Thanks.. I suspected it wasn't meant to be taken as in the file > > THe one thing I'm not sure if Jython is suppsosedto keep running > after the initisl stuff is loaded in.. > > > To put the question in purely DOS terms if you run a program can you pipe it > some commands and then keep it running to take the remaining commands from > the console? > That's not a built-in feature of cmd.exe. However, it wouldn't be hard to write a data source (funny.exe) that took data from a file, and then from stdin, sending both in progression to stdout. Then you'd run the two programs as: funny.exe infile.txt | newprog.exe -- DaveA