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
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
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
___
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,
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
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.
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
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
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
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
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
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
12 matches
Mail list logo