That works like a charm -- thanks!
"Chas. Owens" wrote on 07/05/2009 03:57:34 AM:
> From:
>
> "Chas. Owens"
>
> To:
>
> Eric Veith/Germany/i...@ibmde
>
> Cc:
>
> beginners@perl.org
>
> Date:
>
> 07/05/2009 03:58 AM
>
> Subj
On Thu, Jul 2, 2009 at 04:36, Eric Veith wrote:
>
> Hello List,
>
> as part of a Perl script of mine, I want to execute a program, get its
> return code AND capture its output on both STDERR and STDOUT. I tried
> IO::Handle, but that only gives me STDOUT and not the return code. Using
> qr//, I can
Karyn Williams wrote:
> I have this script I have been working on where I need to redirect STDOUT
> and STDERR to files at the beginning of the script and then back to default
> (terminal) at the end of the script. I found an example on-line and used it
> and it works, however it generates a warnin
On 5/7/07, Karyn Williams <[EMAIL PROTECTED]> wrote:
I have this script I have been working on where I need to redirect STDOUT
and STDERR to files at the beginning of the script and then back to default
(terminal) at the end of the script. I found an example on-line and used it
and it works, how
On 5/7/07, Karyn Williams <[EMAIL PROTECTED]> wrote:
I have this script I have been working on where I need to redirect STDOUT
and STDERR to files at the beginning of the script and then back to default
(terminal) at the end of the script. I found an example on-line and used it
and it works, howe
On 2/12/06, Ron Smith <[EMAIL PROTECTED]> wrote:
snip
> Yeah, I deserve it. Giving the whole story in the beginning would have been
> better. But,
> hey I'm JAPH and laziness is a virtue in that case. :-) Anyway the "push"
> does just fine.
snip
There is a difference between laziness (a sin) and
Tom Phoenix <[EMAIL PROTECTED]> wrote: Inexplicably, Ron Smith seems to have
written:
> Yes, you are right. I probably should post the rest of the story at this
> point:
> and I'd like to generate a row of asterisks, based on the number stored in
> $firstBar. I thought of printing to a file th
Inexplicably, Ron Smith <[EMAIL PROTECTED]> seems to have written:
> Yes, you are right. I probably should post the rest of the story at this
> point:
> and I'd like to generate a row of asterisks, based on the number stored in
> $firstBar. I thought of printing to a file then splitting the co
Tom Phoenix <[EMAIL PROTECTED]> wrote: On 2/12/06, Ron Smith wrote:
> How would I redirect the output of the print line to an array instaed of
> STDOUT?
>
> my $firstBar = 5;
> print "*" while $firstBar, $firstBar--;
You would write some Perl code that puts something into an array, and
you woul
Sky Blueshoes <[EMAIL PROTECTED]> wrote: Ron Smith wrote:
>Hi all,
>
> How would I redirect the output of the print line to an array instaed of
> STDOUT?
>
> my $firstBar = 5;
> print "*" while $firstBar, $firstBar--;
>
> I've looked in several places, including the Camel Book and the Cookboo
On 2/12/06, Ron Smith <[EMAIL PROTECTED]> wrote:
> How would I redirect the output of the print line to an array instaed of
> STDOUT?
>
> my $firstBar = 5;
> print "*" while $firstBar, $firstBar--;
You would write some Perl code that puts something into an array, and
you would use that in
Octavian Rasnita wrote:
Use select() function.
Read perldoc -f select
Teddy
- Original Message -
From: "Matthias Kraatz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 27, 2004 12:20 AM
Subject: 're'-redirecting STDOUT back to ST
Use select() function.
Read perldoc -f select
Teddy
- Original Message -
From: "Matthias Kraatz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 27, 2004 12:20 AM
Subject: 're'-redirecting STDOUT back to STDOUT after writing to a
Matthias Kraatz wrote:
in a cgi-script I wanted to prevent an executable that I call from
within the script from dumping output directly to the webpage.
This worked fine with 'open(STDOUT,">something-log.txt")'.
But now I want to write to the webpage again.
'open(STDOUT,">&STDOUT")' does not only l
Hi,
this might be a really stupid question. But, in a cgi-script I
wanted to prevent an executable that I call from within the script from
dumping output directly to the webpage.
This worked fine with 'open(STDOUT,">something-log.txt")'.
But now I want to write to the webpage again. 'open(STD
From: "Troy May" <[EMAIL PROTECTED]>
> I'm writing a script that is currently interactive ( once I'm done
> debugging it will be non-interactive) in that I have to tell it to
> keep processing data after the end of every pass. I'm looking for a
> way to display the script's outp
Message-
From: Troy May [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 8:19 PM
To: Wiggins d'Anconia
Cc: Perl Beginners
Subject: RE: Redirecting STDOUT
I think I found it! Read this:
|tee - Tee allows for the stdout to be sent to both the screen and to a file
"comm
Troy May wrote:
> I'm writing a script that is currently interactive ( once I'm done debugging
> it will be non-interactive) in that I have to tell it to keep processing
> data after the end of every pass. I'm looking for a way to display the
> script's output on my screen, but also to log it to a
To: Troy May
Cc: Perl Beginners
Subject: Re: Redirecting STDOUT
You could open a file from within the script, then for each of your
prints, print both to the open filehandle and also to standard out.
This should work though I would imagine (hope) there is a better way.
http://danconia.org
Troy M
You could open a file from within the script, then for each of your
prints, print both to the open filehandle and also to standard out.
This should work though I would imagine (hope) there is a better way.
http://danconia.org
Troy May wrote:
> I'm writing a script that is currently interactive
20 matches
Mail list logo