Re: [Tutor] subprocess.Popen basics

2014-10-27 Thread Adam Jensen
On 10/27/2014 09:31 PM, Alan Gauld wrote: > On 27/10/14 20:26, Adam Jensen wrote: > >> That's a bit bizarre. I too have the execution bit set for both the >> python script and the shell script but the same (no joy) behavior occurs >> on both: > >> $ ./subprocess_pipe.py > > Its a long shot but

Re: [Tutor] subprocess.Popen basics

2014-10-27 Thread Alan Gauld
On 27/10/14 20:26, Adam Jensen wrote: That's a bit bizarre. I too have the execution bit set for both the python script and the shell script but the same (no joy) behavior occurs on both: $ ./subprocess_pipe.py Its a long shot but try explicitly invoking the interpreter: $ python3 ./subpro

Re: [Tutor] subprocess.Popen basics

2014-10-27 Thread Alan Gauld
On 28/10/14 01:05, Adam Jensen wrote: Thanks for giving it a try. The mailing list moderation delay is making an interactive conversation a bit difficult. Well, that much I can help with, you are now off moderation :-) -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/

Re: [Tutor] subprocess.Popen basics

2014-10-27 Thread Adam Jensen
On 10/27/2014 03:40 PM, David Abbott wrote: >> It hangs at the print statement and, from the sound of the fans in the >> computer, I suspect it spirals off into an infinite loop somewhere / >> somehow. Does anyone have any ideas about what it is that I might be >> misunderstanding? > > Works here.

Re: [Tutor] subprocess.Popen basics

2014-10-27 Thread Adam Jensen
On 10/27/2014 07:12 PM, Alan Gauld wrote: > On 27/10/14 18:24, Adam Jensen wrote: >> It hangs at the print statement and, from the sound of the fans in the >> computer, I suspect it spirals off into an infinite loop somewhere > > It works fine on my Lubuntu 14 with Python3.4. > > How exactly are

Re: [Tutor] subprocess.Popen basics

2014-10-27 Thread Adam Jensen
On 10/27/2014 03:40 PM, David Abbott wrote: >> It hangs at the print statement and, from the sound of the fans in the >> computer, I suspect it spirals off into an infinite loop somewhere / >> somehow. Does anyone have any ideas about what it is that I might be >> misunderstanding? > > Works here

Re: [Tutor] subprocess.Popen basics

2014-10-27 Thread Alan Gauld
On 27/10/14 18:24, Adam Jensen wrote: It hangs at the print statement and, from the sound of the fans in the computer, I suspect it spirals off into an infinite loop somewhere It works fine on my Lubuntu 14 with Python3.4. How exactly are you running it? If I don't make parrot.sh executable I

Re: [Tutor] subprocess.Popen basics

2014-10-27 Thread David Abbott
I did do this also; david@heater ~/python_practice $ chmod a+x parrot.sh david@heater ~/python_practice $ chmod a+x subprocess_pipe.py ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/l

Re: [Tutor] subprocess.Popen basics

2014-10-27 Thread David Abbott
> It hangs at the print statement and, from the sound of the fans in the > computer, I suspect it spirals off into an infinite loop somewhere / > somehow. Does anyone have any ideas about what it is that I might be > misunderstanding? Works here. david@heater ~/python_practice $ ./subprocess_pipe

[Tutor] subprocess.Popen basics

2014-10-27 Thread Adam Jensen
Hi, I'm exploring Popen today and I seem to be having some trouble deciphering the [documentation][1]. [1]: docs.python.org/3/library/subprocess.html#popen-constructor In this example (below), I expect to start a shell script as a separate process, send a line of text through a pipe (to the shell

Re: [Tutor] if you're interested in the code thus far...

2014-10-27 Thread Peter Otten
Clayton Kirkwood wrote: > Good eyes on the logic > > > !-Original Message- > !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On > !Behalf Of Peter Otten > !Sent: Sunday, October 26, 2014 3:53 AM > !To: tutor@python.org > !Subject: Re: [Tutor] if you're interested in the

Re: [Tutor] if you're interested in the code thus far...

2014-10-27 Thread Alan Gauld
On 27/10/14 03:17, Clayton Kirkwood wrote: get_new_list = True print(values) #[('a', 'Ask'), ('y', 'Dividend Yield')] while get_new_list: key_list = input('Please enter space separated keys in the order you want: ').split() print(key_list)#['a', 'y']

Re: [Tutor] if you're interested in the code thus far...

2014-10-27 Thread Clayton Kirkwood
!-Original Message- !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On !Behalf Of Alan Gauld !Sent: Sunday, October 26, 2014 5:34 PM !To: tutor@python.org !Subject: Re: [Tutor] if you're interested in the code thus far... ! !On 26/10/14 22:12, Clayton Kirkwood wrote: ! !