Save this as a file called "showservices", then
chmod 700 showservices and run it:

#!/bin/sh
 
CHKCONFIG=/sbin/chkconfig
GREP=/bin/grep
EXPAND=/usr/bin/expand
COLRM=/usr/bin/colrm
SED=/bin/sed
SORT=/bin/sort
ECHO=/bin/echo
 
$ECHO
$ECHO "xinetd:"
$ECHO "--------------------"
$CHKCONFIG --list | $GREP "\bon" | $GREP -v "0:" | \
        $EXPAND | $COLRM 1 8 | $SED s/:.*on//g | $SORT
 
$ECHO
$ECHO "init.d:"
$ECHO "--------------------"
$CHKCONFIG --list | $GREP "3:on" | $EXPAND | $COLRM 15 80 | $SORT
$ECHO
 

Abe wrote:
> 
> I want to check the services that are enabled such as telnet, etc on a
> machine.  When I try the chkconfig --list command it is not available.
> I am using Red Hat linux.
> 
> Any ideas? Thanks for any help.
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to