Re: named pipe input

2005-09-01 Thread Donn Cave
In article <[EMAIL PROTECTED]>, "max(01)*" <[EMAIL PROTECTED]> wrote: > i have some problems understanding following behaviour. > > consider this: > $ cat file_input_3.pl > #!/usr/bin/perl > > open MIAPIPE, "una_pipe"; > > while ($riga = ) ... > $ cat file_input_3.py > #!/usr/bin/python > >

Re: named pipe input

2005-09-01 Thread max(01)*
Eric Nieuwland wrote: > max(01)* wrote: > >> $ cat file_input_3.py >> #!/usr/bin/python >> >> import sys >> >> MIAPIPE = open("una_pipe", "r") >> >> for riga in MIAPIPE: >>print riga, >> ... >> [...] >> BUT if i try to do the same with the python code, something different >> happens: i have to

named pipe input

2005-09-01 Thread max(01)*
hi there. i have some problems understanding following behaviour. consider this: ... $ cat file_input_3.pl #!/usr/bin/perl open MIAPIPE, "una_pipe"; while ($riga = ) { print STDOUT ("$riga"); } $ cat file_input_3.py #!/usr/bin/python import sys MIAPIPE = open("una_pipe", "r") fo

Re: named pipe input

2005-09-01 Thread Eric Nieuwland
max(01)* wrote: > $ cat file_input_3.py > #!/usr/bin/python > > import sys > > MIAPIPE = open("una_pipe", "r") > > for riga in MIAPIPE: >print riga, > ... > [...] > BUT if i try to do the same with the python code, something different > happens: i have to type ALL the lines on console #2 and co