make sure the service is not running
Olaf Greis
greis at grinco.de
Tue Oct 15 09:03:40 CEST 2002
Am Dienstag, 15. Oktober 2002 02:49 schrieb Zakki A:
> hi ... i would like to make sure that a service is not running.
> for example is telnet. i want to make sure all host is using ssh and telnet
> is always down.
> how to do that ?
try something like
#!/bin/sh
check_telnet ....
err=$?
case $err in
0)
1)
exit 2;
;;
2)
exit 0;
;;
*)
exit $err
;;
esac
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list