if ( system( "command" ) == 0 ) { # cmd ok }