Thanks for all the great insight.&nbsp; I think I going to simply redirect the output as Mike suggested.<br> <br> Thanks again,<br> <br> Richard<br><br><b><i>Jonathan Rockway &lt;jon@jrock.us&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> It might be more concise/readable to do this:<br><br>if(fork()){<br>    close *STDERR;<br>    `ls /nonexistent`; # or whatever<br>}<br>else {<br>    print {*STDERR} "stderr still works here\n";<br>}<br>wait();<br>print {*STDERR} "and here\n"<br><br>This, BTW, is inconsistent with the description in perldoc ("fds are <br>shared", it says).<br><br>Regards,<br>Jonathan Rockway<br><br>Jess Balint wrote:<br>&gt; Richard,<br>&gt;<br>&gt; Yet another way is to dup the stderr onto a new fd and then run your<br>&gt; command. You can restore it afterwards. The following example dups stderr<br>&gt; onto olderr, then opens stderr onto /dev/null. The command "ls /xxx"
 is run<br>&gt; and no error output is displayed. The stderr fd is then restored by duping<br>&gt; olderr back onto stderr and the command "ls /yyy" is run with the error<br>&gt; output visible. (It's not the coolest one-liner ;)<br>&gt;<br>&gt; perl -e'open(OLDERR, "&gt;&amp;STDERR");open(STDERR, "&gt;/dev/null");system("ls<br>&gt; /xxx");close(STDERR);open(STDERR, "&gt;&amp;OLDERR");system("ls /yyy");'<br>&gt;<br>&gt; ________________________________________<br>&gt; Hello All,<br>&gt;<br>&gt; Is there a way to execute a system command with out the console printing an<br>&gt; error message?  I wan't to do system("play soundfile.wav") but I do not want<br>&gt; the error message to print out if the file cannot be played.  <br>&gt;<br>&gt; Any help would be greatly appreciated.<br>&gt;<br>&gt; Thanks in advance,<br>&gt;<br>&gt; Richard<br>&gt;<br>&gt;<br>&gt; Your beliefs become your thoughts. Your thoughts become your words. Your<br>&gt; words become your actions. Your
 actions become your habits. Your habits<br>&gt; become your values. Your values become your destiny. -- Mahatma Gandhi<br>&gt;<br>&gt; _______________________________________________<br>&gt; Chicago-talk mailing list<br>&gt; Chicago-talk@pm.org<br>&gt; http://mail.pm.org/mailman/listinfo/chicago-talk<br>&gt;   <br><br>_______________________________________________<br>Chicago-talk mailing list<br>Chicago-talk@pm.org<br>http://mail.pm.org/mailman/listinfo/chicago-talk<br></blockquote><br><BR><BR>Your beliefs become your thoughts.  Your thoughts become your words.  Your words become your actions.  Your actions become your habits.  Your habits become your values.  Your values become your destiny.  -- Mahatma Gandhi