Help for this page

Select Code to Download


  1. or download this
    @ServicesOnMachine = `/sbin/chkconfig --list | awk '{print \$1}'`;
    
  2. or download this
    NetworkManager
    acpid
    ...
    xfs
    ypbind
    yum-updatesd
    
  3. or download this
    @ServiceCheckList = ("spray", "echo", "daytime", "discard", "chargen",
    + "ttdb", "ypbind", "ypserv", "yppasswdd", "ypxfrd", "tooltalk", "rsta
    +td", "comsat", "talk", "uucp", "finger", "netstat", "systat", "rusers
    +", "walld", "rexd", "rje", "netbios", "lpd", "http", "gopher", "tcpmu
    +x", "news", "nntp", "snmp", "mail", "smtp", "pop2", "pop3", "sendmail
    +", "httpd");
    
  4. or download this
    foreach (@ServiceCheckList eq @ServicesOnMachine)
    {
         print $_;
    }