kgoess has asked for the wisdom of the Perl Monks concerning the following question:
Anybody seen this before or have any ideas?
Here's a demo script. Use the menu option File/Report extract to see the pause. (Note that the window it opens is tiny, you might miss it on your screen).
use Tk; use File::Spec; $top = MainWindow->new(); my $menubar = $top->Menu(-type => 'menubar'); $top->configure(-menu => $menubar); my $filemenu = $menubar->cascade(-label => '~File', -tearoff => 0); $filemenu->command(-label => '~Report extract', -command => [\&report_extract], ); $filemenu->command(-label => 'E~xit', -command => [sub {exit}], ); print STDERR "there's a tiny window open, it's small but it's there\n" +; MainLoop(); sub report_extract { my $tmpdir = File::Spec->tmpdir(); open (F, ">$tmpdir\\xx.csv") || die $!; print F "aaa,bbb,ccc\nddd,eee,fff\n"; close F; my $cmd = "start $tmpdir\\xx.csv"; print STDERR "running $cmd\n"; `$cmd`; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: subprocess delay on Windows with Perl/Tk
by Fletch (Bishop) on Jun 03, 2004 at 18:26 UTC | |
by kgoess (Beadle) on Jun 03, 2004 at 18:58 UTC | |
by pfaut (Priest) on Jun 03, 2004 at 19:15 UTC | |
by kgoess (Beadle) on Jun 03, 2004 at 20:05 UTC | |
by pfaut (Priest) on Jun 03, 2004 at 22:25 UTC | |
by PodMaster (Abbot) on Jun 03, 2004 at 19:51 UTC | |
|
Re: subprocess delay on Windows with Perl/Tk
by NetWallah (Canon) on Jun 03, 2004 at 23:14 UTC | |
by kgoess (Beadle) on Jun 05, 2004 at 15:03 UTC | |
by NetWallah (Canon) on Jun 05, 2004 at 17:08 UTC | |
by BrowserUk (Patriarch) on Jun 05, 2004 at 18:19 UTC |