home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Previous Section Next Section

EX_OK

No problems, all was fine sendmail exit value

The EX_OK exit code (value 0) indicates that sendmail did its job and there were no errors.

Note that this should be the exit value of all the programs that sendmail runs when they succeed without errors. To illustrate, the following C-language code returns a random value:

main( )
{
      need a "return 0" or exit(0) here  
}
    Previous Section Next Section