Re: STDIN and STDOUT on Windows

2004-01-14 Thread Peter Kay
[EMAIL PROTECTED] (Rob Dixon) wrote: > We Unix people find we Windows people very strange :) ... > test.pl < test.txt > and > type test.txt | perl test.pl > > are just two (increasingly weird) versions of > > perl test.pl test.txt > We Unix people want to rip out the operating system som

Re: STDIN and STDOUT on Windows

2003-07-21 Thread Rob Dixon
Mark Lobue wrote: > > -Original Message- > > From: LoBue, Mark [mailto:[EMAIL PROTECTED] > > Sent: Monday, July 21, 2003 9:26 AM > > To: '[EMAIL PROTECTED]' > > Subject: STDIN and STDOUT on Windows > > > > > > Hello, > > &

RE: STDIN and STDOUT on Windows

2003-07-21 Thread LoBue, Mark
> -Original Message- > From: LoBue, Mark [mailto:[EMAIL PROTECTED] > Sent: Monday, July 21, 2003 9:26 AM > To: '[EMAIL PROTECTED]' > Subject: STDIN and STDOUT on Windows > > > Hello, > > I normally use perl on a unix platform, but I needed to

STDIN and STDOUT on Windows

2003-07-21 Thread LoBue, Mark
Hello, I normally use perl on a unix platform, but I needed to run a quick utility on a Windows PC. Normal stdin and stdout doesn't seem to work, take this simple program: # use warnings; use strict; while (<>) { print; } On Windows, if I run: type test.txt | te

Re: (solution) Re: STDIN and STDOUT

2001-07-10 Thread Paul
--- Michael Fowler <[EMAIL PROTECTED]> wrote: > On Tue, Jul 10, 2001 at 10:28:14AM -0700, Paul wrote: > > > > --- Paul <[EMAIL PROTECTED]> wrote: > > > > > > --- Bob Mangold <[EMAIL PROTECTED]> wrote: > > > > exec(' myperl.pl 2>&1 ' ) ? > > > > > > > > ok, this works, but what the heck is it do

Re: (solution) Re: STDIN and STDOUT

2001-07-10 Thread Michael Fowler
On Tue, Jul 10, 2001 at 10:28:14AM -0700, Paul wrote: > > --- Paul <[EMAIL PROTECTED]> wrote: > > > > --- Bob Mangold <[EMAIL PROTECTED]> wrote: > > > exec(' myperl.pl 2>&1 ' ) ? > > > > > > ok, this works, but what the heck is it doing. i've never seen that > > > syntax. > > > > lol -- it's no

Re: (solution) Re: STDIN and STDOUT

2001-07-10 Thread Paul
--- Paul <[EMAIL PROTECTED]> wrote: > > --- Bob Mangold <[EMAIL PROTECTED]> wrote: > > As mentioned eariler... > > > > --- Craig Moynes/Markham/IBM <[EMAIL PROTECTED]> wrote: > > You mentioned in the earlier email that you were calling your perl > > script > > via 'exec' (as I remember). > > Co

Re: (solution) Re: STDIN and STDOUT

2001-07-10 Thread Paul
--- Bob Mangold <[EMAIL PROTECTED]> wrote: > As mentioned eariler... > > --- Craig Moynes/Markham/IBM <[EMAIL PROTECTED]> wrote: > You mentioned in the earlier email that you were calling your perl > script > via 'exec' (as I remember). > Could you not use something like > exec(' myperl.pl 2>&1

(solution) Re: STDIN and STDOUT

2001-07-10 Thread Bob Mangold
As mentioned eariler... --- Craig Moynes/Markham/IBM <[EMAIL PROTECTED]> wrote: You mentioned in the earlier email that you were calling your perl script via 'exec' (as I remember). Could you not use something like exec(' myperl.pl 2>&1 ' ) ? ok, this works, but what the heck is it doing. i've

Re: STDIN and STDOUT

2001-07-10 Thread Paul
--- Bob Mangold <[EMAIL PROTECTED]> wrote: > > Are you sure it's STDERR? Some write directly to ther terminal > > screen... > > I checked through the module code and it definitely says 'print > STDERR ...'. Well, unless they've done some shinanigans further up the code, that's pretty conclusive

Re: STDIN and STDOUT

2001-07-10 Thread Bob Mangold
> Are you sure it's STDERR? Some write directly to ther terminal > screen... > I checked through the module code and it definitely says 'print STDERR ...'. > What is this module? The module is 'bioperl' (used for genetic analysis). __ Do You Ya

Re: STDIN and STDOUT

2001-07-10 Thread Paul
--- Bob Mangold <[EMAIL PROTECTED]> wrote: > > Does anybody know why he shouldn't do the following? > > > > *STDERR = *STDOUT; > > > > This is what I orignally tried, and is didn't really work. I think my > problem lies in the fact that I am hoping to make the change in a > module that I am 'u

Re: STDIN and STDOUT

2001-07-10 Thread Bob Mangold
> Does anybody know why he shouldn't do the following? > > *STDERR = *STDOUT; > This is what I orignally tried, and is didn't really work. I think my problem lies in the fact that I am hoping to make the change in a module that I am 'use'ing. So I tried all of the suggestions, but it seemed tha

Re: STDIN and STDOUT

2001-07-10 Thread Paul
--- Bob Mangold <[EMAIL PROTECTED]> wrote: > Hello, > > I sent an email yesterday, but never heard anything. Maybe it was the > word 'php' in the subject, but let me just simplify and ask another > way. > > Is there a way to automatically direct all STDERR output to STDOUT. A > module I have in

Re: STDIN and STDOUT

2001-07-10 Thread Chas Owens
On 10 Jul 2001 04:45:56 -0700, Bob Mangold wrote: > Hello, > > I sent an email yesterday, but never heard anything. Maybe it was the word > 'php' in the subject, but let me just simplify and ask another way. > > Is there a way to automatically direct all STDERR output to STDOUT. A module I > hav

Re: STDIN and STDOUT

2001-07-10 Thread Craig Moynes/Markham/IBM
>Hello, >I sent an email yesterday, but never heard anything. Maybe it was the word >'php' in the subject, but let me just simplify and ask another way. >Is there a way to automatically direct all STDERR output to STDOUT. A module I >have installed automatically creates STDERR output, but I want t

Re: STDIN and STDOUT

2001-07-10 Thread Robert Aspinall
ge - From: "Bob Mangold" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 7:45 AM Subject: STDIN and STDOUT > Hello, > > I sent an email yesterday, but never heard anything. Maybe it was the word > 'php' in the subject, but let

Re: STDIN and STDOUT

2001-07-10 Thread Rashid Faraby
e: Tue, 10 Jul 2001 04:45:56 -0700 (PDT) Subject: STDIN and STDOUT > Hello, > > I sent an email yesterday, but never heard anything. Maybe it was the > word > 'php' in the subject, but let me just simplify and ask another way. > > Is there a way to automaticall

Re: STDIN and STDOUT

2001-07-10 Thread Rashid Faraby
e: Tue, 10 Jul 2001 04:45:56 -0700 (PDT) Subject: STDIN and STDOUT > Hello, > > I sent an email yesterday, but never heard anything. Maybe it was the > word > 'php' in the subject, but let me just simplify and ask another way. > > Is there a way to automaticall

STDIN and STDOUT

2001-07-10 Thread Bob Mangold
Hello, I sent an email yesterday, but never heard anything. Maybe it was the word 'php' in the subject, but let me just simplify and ask another way. Is there a way to automatically direct all STDERR output to STDOUT. A module I have installed automatically creates STDERR output, but I want that