Re: [Boston.pm] Bizare HTTP::Daemon = IE problem on Windows

2005-05-09 Thread James Eshelman
No, opening another browser window, or one on another machine, is not successful either as long as the first one is still open. I ran HTTP::Daemon in the debugger and it became immediately obvious that the problem is opening the first IE window in the backticks: When cmd.exe runs the first

Re: [Boston.pm] Bizare HTTP::Daemon = IE problem on Windows

2005-05-09 Thread Duane Bronson
Some windows processes (GUIs) when run from cmd will return control and others (command lines) will not. It might have something to do with closing the stdin/stdout, but I'm not sure. The bottom line is that you can sometimes get things to launch in the background with start. `*start

[Boston.pm] Simultaneous redirect to STDOUT File?

2005-05-09 Thread Palit, Nilanjan
I want to redirect print output to both stdout a file at the same time: I can think of writing a sub that executes 2 print statements (one each to stdout the filehandle), but I was hoping someone has a more elegant solution. Thanks, -Nilanjan ___

Re: [Boston.pm] Simultaneous redirect to STDOUT File?

2005-05-09 Thread Duane Bronson
If it's Unix-only, you can open (tee output.log |) and write to that. And search.cpan.org tells me there's IO::Tee Or you could use something like log4perl which I think allows you to configure multiple appenders of which one can be stdout and another can be a log file. That might be overkill,

Re: [Boston.pm] Bizare HTTP::Daemon = IE problem on Windows

2005-05-09 Thread Jeremy Muhlich
The June 2004 issue of TPJ had an article titled Controlling Internet Explorer Using Win32::OLE which details the exact approach you're taking. Here's the relevant code: use Win32::OLE; my $explorer = new Win32::OLE(`InternetExplorer.Application') or die Unable to

Re: [Boston.pm] Simultaneous redirect to STDOUT File?

2005-05-09 Thread Gyepi SAM
On Mon, May 09, 2005 at 07:48:09AM -0700, Palit, Nilanjan wrote: I want to redirect print output to both stdout a file at the same time: I can think of writing a sub that executes 2 print statements (one each to stdout the filehandle), but I was hoping someone has a more elegant solution.

Re: [Boston.pm] Bizare HTTP::Daemon = IE problem on Windows

2005-05-09 Thread James Eshelman
Thanks very much, Duane, that's just what's needed and does the job in this case. (without the bracketing mail-injected stars, as you noted.) Jim Eshelman www.nepm.net Network Monitoring with a difference - Original Message - From: Duane Bronson [EMAIL PROTECTED] To: James Eshelman

Re: [Boston.pm] Simultaneous redirect to STDOUT File?

2005-05-09 Thread Palit, Nilanjan
Thanks to all who responded. IO::Tee seems to be the right solution. -Nilanjan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gyepi SAM Sent: Monday, May 09, 2005 11:35 AM To: Palit, Nilanjan Cc: Boston.PM Subject: Re: [Boston.pm] Simultaneous redirect

Re: [Boston.pm] Simultaneous redirect to STDOUT File?

2005-05-09 Thread Ben Tilly
Be aware that IO::Tee has limitations. It only works for output that goes through Perl's IO system. In particular if your program makes a system call, the child process will NOT see the tee. Cheers, Ben On 5/9/05, Duane Bronson [EMAIL PROTECTED] wrote: If it's Unix-only, you can open (tee

Re: [Boston.pm] Simultaneous redirect to STDOUT File?

2005-05-09 Thread Uri Guttman
BT == Ben Tilly [EMAIL PROTECTED] writes: BT Be aware that IO::Tee has limitations. It only works for output that BT goes through Perl's IO system. In particular if your program makes BT a system call, the child process will NOT see the tee. i bet you can work around that by saving

Re: [Boston.pm] Simultaneous redirect to STDOUT File?

2005-05-09 Thread Ben Tilly
On 5/9/05, Uri Guttman [EMAIL PROTECTED] wrote: BT == Ben Tilly [EMAIL PROTECTED] writes: BT Be aware that IO::Tee has limitations. It only works for output that BT goes through Perl's IO system. In particular if your program makes BT a system call, the child process will NOT see

Re: [Boston.pm] Simultaneous redirect to STDOUT File?

2005-05-09 Thread Uri Guttman
BT == Ben Tilly [EMAIL PROTECTED] writes: BT On 5/9/05, Uri Guttman [EMAIL PROTECTED] wrote: BT == Ben Tilly [EMAIL PROTECTED] writes: BT Be aware that IO::Tee has limitations. It only works for output that BT goes through Perl's IO system. In particular if your program makes