in reply to System command silent screen

On Linux you can redirect the output (and error stream) to /dev/null, on Windows to NUL (iirc). If the program writes directly to the console, that doesn't work, but luckily that's only very seldom the case.

Since you didn't tell us the operating system, it's a bit of a guesswork.

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: System command silent screen
by uvnew (Acolyte) on Oct 10, 2010 at 15:48 UTC
    Many thanks Moritz. I am using Ubuntu. Sorry for being slow (I don't use Perl often), but what should be the actual command line for redirecting the system command screen output?
      system "$command @arguments >/dev/null 2>&1" and die "...";
      Perl 6 - links to (nearly) everything that is Perl 6.
        Thanks a lot, that's perfect!