Chris Rodriguez wrote:
*/Bill Luebkert [EMAIL PROTECTED]/* wrote:
Chris Rodriguez wrote:
Hi everyone,
I saw the following on another PERL list-serve:
If you are on windows, then see perlfaq8 if ActiveState perl for
how to redirect STDOUT and
Hi everyone,
I saw the following on another PERL list-serve:
If you are on windows, then see perlfaq8 if ActiveState perl for
how to redirect STDOUT and STDERR when doing backticks.
I'd like to be able to capture STDOUT as a string. But nothing on
perlfaq8 struck me as relevant. Did I miss
Bill Luebkert [EMAIL PROTECTED] wrote: Chris Rodriguez wrote:
Hi everyone,
I saw the following on another PERL list-serve:
If you are on windows, then see perlfaq8 if ActiveState perl for
how to redirect STDOUT and STDERR when doing backticks.
I'd like to be able to capture STDOUT as a
Chris,
Do you absolutely need backticks? You can invoke a command/program and
capture stdin, stdout with OPEN2, and stderr with OPEN3. I haven't done it
in ActivePerl although I have in Unix. I do know they don't work well for
my purposes with another perl script, but they might work with a
Hi everyone,
I saw the following on another PERL list-serve:
If you are on windows, then see perlfaq8 if ActiveState perl for
how to redirect STDOUT and STDERR when doing backticks.
I'd like to be able to capture STDOUT as a string. But nothing on perlfaq8
struck me as relevant. Did I miss
Chris Rodriguez wrote:
Hi everyone,
I saw the following on another PERL list-serve:
If you are on windows, then see perlfaq8 if ActiveState perl for
how to redirect STDOUT and STDERR when doing backticks.
I'd like to be able to capture STDOUT as a string. But nothing on perlfaq8
struck
Hi Guys,
I've managed to log STDOUT to a file like this...
if (defined ($outfile)) {
$tee = IO::Tee - new($out, \*STDOUT);
select $tee;
}
However, if I want to stop logging to a file, but carry on getting print outs
to the screen, what do I need to do?
Thanks.
R.
Beckett Richard-qswi266 wrote:
Hi Guys,
I've managed to log STDOUT to a file like this...
if (defined ($outfile)) {
$tee = IO::Tee - new($out, \*STDOUT);
select $tee;
}
However, if I want to stop logging to a file, but carry on getting print outs
to the screen, what do
Hi again,
I have changed my server solution to use perl 5.8 threads, instead of fork.
It is set up for non-blocking sockets. It has a client that is non-blocking
as well.
my problem is that It still prints to STDOUT, not $client.
Your help is appreciated. Thanks in advance.
Regards,
Jeremy
Hi again,
I have changed my server solution to use perl 5.8 threads, instead of fork.
It is set up for non-blocking sockets. It has a client that is non-blocking
as well.
my problem is that It still prints to STDOUT, not $client.
Your help is appreciated. Thanks in advance.
Regards,
Jeremy
Hi Bill,
I don't think its a threading issue. when i comment out the threads, it
still prints to STDOUT even when there is no print statement.
eg. here is the piece of code.
open(RH,|$cmd|); --- all i am doing is instantiating a process,
why is it printing to STDOUT, when i have not
Jeremy A wrote:
Hi all,
I am using IPC::Open2. I have a Read Handle (RH) and a Write Handle (WH). I
fork() for doing non-blocking IO.
my problem is , when i try the print the RH to socket ($client), It writes
to STDOUT (server console screen). nothing gets written to the socket.
I have been trying, unsuccessfully to redirect the STDOUT from my perl
script running as a service with Win32::Daemon.
The method I have been using is to open the STOUT handle to a file,
$FileName. See the code example below. Most of the service stuff has been
copied from David Roth's website,
H:\ test.pl test.out
NT doesn't allow command line redirection such as , , or | unless the
executable file extension is .BAT, .CMD, .COM, or .EXE.
perl test.pl test.out
should work because perl is an .EXE file.
Merrill
___
Perl-Win32-Users
14 matches
Mail list logo