ginju has asked for the wisdom of the Perl Monks concerning the following question:
Hello great Monks,
I seek thy wisdom!
This is what my perl program looks like!
close(STDOUT)
close(STDERR)
open (STDOUT, ">mylog.log") || die "could not open log\n";
open (STDERR, ">myerr.log") || die "could not open error log\n";
{
Some more perl syntax...
}
close(STDERR)
close(STDOUT)
When I run this perl program on Solaris (SYSTEM V UNIX release) the STDOUT and STDERR stuff is actually written to the .log files. But when I use the same perl program on an NT machine, everything works fine in terms of what the program is supposed to do, but the STDOUT and STDERR is not getting written to the .log files.
The reason I am redirecting the output to the .log files is because I want to look at it after the program is done doing what it should.
Please advise as to what I can do to get it working on NT machine. Thank you
-ginju
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Does redirectiong the STDERR/STDOUT work well on WINDOWS NT?
by c-era (Curate) on Apr 26, 2001 at 22:10 UTC |