Few Shell Scripts :--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
echo "1. httpd"
echo "2. exim"
read -p "Enter Service to restart" n
if [ $n -eq 1 ]; then
/scripts/restartsrv httpd
else
/etc/init.d/exim restart
fi
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
echo "1. httpd"
echo "2. exim"
read -p "Enter Service to restart" n
if [ $n -eq 1 ]; then
/scripts/restartsrv httpd
else
/etc/init.d/exim restart
fi
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
No comments:
Post a Comment