in reply to Re^7: Suppress windows cmd for system command in Perl
in thread Suppress windows cmd for system command in Perl

Though I have not tried Win32::Process as I have some limitation to add new module in my application. But as you suspected the application is not creating the window as I am able to see the command that I gave in system in perl getting executed in command prompt window. I am able to rectify this in Linux by adding a extra argument $args5 = " 2>&1 >/dev/null"; which is passing the output to /dev/null and do not show on prompt. Similar way I want it in Windows so that it do not show command prompt and complete the command execution in background.
  • Comment on Re^8: Suppress windows cmd for system command in Perl

Replies are listed 'Best First'.
Re^9: Suppress windows cmd for system command in Perl
by Discipulus (Canon) on Jun 18, 2015 at 20:23 UTC
    Hello, start /B program > NUL 2>&1 is the windows equivalence of the shell syntax you refer. Anyway if you see the command executed in the prompt you can also add some line to show up who called it like in Re: Who called Perl? (solved) (if is relevant)
    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re^9: Suppress windows cmd for system command in Perl
by BrowserUk (Patriarch) on Jun 18, 2015 at 21:09 UTC

    Try invoking the java program directly from the C++ program.

    If you still get the pop-up; it means it is out of the control of Perl.

    If you don't; you have a way to prevent the problem.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
    I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!
      As per the design of my application I cannot invoke the java command from C++ program it has to be in Perl script itself.
        As per the design of my application I cannot invoke the java command from C++ program it has to be in Perl script itself.

        The point was to try help you to isolate the cause of your problem.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
        I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!