Re: Redirecting STDOUT

2007-04-02 Thread Alexander Apprich
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

Re: Redirecting STDOUT

2007-04-02 Thread Martin . Miller
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

Re: Redirecting STDOUT

2007-04-01 Thread Chris Rodriguez
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

Re: Redirecting STDOUT

2007-04-01 Thread Nelson R. Pardee
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

Redirecting STDOUT

2007-03-30 Thread Chris Rodriguez
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

Re: Redirecting STDOUT

2007-03-30 Thread Bill Luebkert
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

UN-redirecting STDOUT.

2004-11-16 Thread Beckett Richard-qswi266
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.

Re: UN-redirecting STDOUT.

2004-11-16 Thread $Bill Luebkert
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

Re: Redirecting STDOUT

2003-12-13 Thread Jeremy A
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

Re: Redirecting STDOUT, help please

2003-12-13 Thread Jeremy A
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

Re: Redirecting STDOUT from open.

2003-12-13 Thread Jeremy A
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

Re: Redirecting STDOUT

2003-12-12 Thread $Bill Luebkert
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.

Redirecting STDOUT with Win32::Daemon

2002-08-09 Thread Philip Morley
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,

RE: redirecting stdout from the dos command line.

2001-05-22 Thread Cornish, Merrill
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