Help for this page

Select Code to Download


  1. or download this
    open(MAIL,"|mailx blah") || die "No mail stuff: $! \n";
    if ($ct>0) {
        print MAIL "\n$ct ".($ct>1 ? "are not available" : "is down")." at
    + this time.\n";
    }
    close(MAIL);
    
  2. or download this
    open(MAIL,"|mailx blah") || die "No mail stuff: $! \n";
    print MAIL "\nSystems unavailable at this time: $ct\n" if ($ct>0)
    close(MAIL);