mark4 has asked for the wisdom of the Perl Monks concerning the following question:
Hello all great and powerful Monks. Using a Windows OS, How can I spawn a new perl program without popping up a new cmd.exe window? Since I will be pipe-ing all output to file(s), there is no need for an annoying black command window. I know I can start it minimized, But I just don't like all those windows down on that task bar.
example code:if ($^O eq "linux") { $cmd = "perl-prog.pl &> file1.out"; } else { $cmd = "start /MIN perl-prog.pl > file1.out 2> file2.out" } system ($cmd);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I start perl without having a "cmd.exe" window (wperl)
by tye (Sage) on Mar 23, 2015 at 13:18 UTC | |
by mark4 (Acolyte) on Mar 23, 2015 at 13:58 UTC | |
by james28909 (Deacon) on Mar 23, 2015 at 15:11 UTC | |
by james28909 (Deacon) on Mar 23, 2015 at 17:26 UTC | |
by BillKSmith (Monsignor) on Mar 23, 2015 at 19:44 UTC | |
by james28909 (Deacon) on Mar 30, 2015 at 03:40 UTC | |
|
Re: How do I start perl without having a "cmd.exe" window
by marinersk (Priest) on Mar 23, 2015 at 20:39 UTC |