[Chicago-talk] How to subvert error message.

Joshua McAdams joshua.mcadams at gmail.com
Wed Jul 12 08:13:17 PDT 2006

>  Is there a way to execute a system command with out the console printing an
> error message?  I wan't to do system("play soundfile.wav") but I do not want
> the error message to print out if the file cannot be played.

`play soundfile.wav`
die if $?

More information about the Chicago-talk mailing list