Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
# Hello World Program in Bash Shell
myList="a b c d e f g h i k l m n o p q r s t u v w x y z"
doList(){
for c in $myList
do
echo $c" ==>"
done
}
echo $1
doList
#!/bin/sh
SERVICE='jboss'
if ps -elf | grep -v grep | grep $SERVICE > /dev/null
then
echo "$SERVICE service running, everything is fine"
else
echo "$SERVICE is not running"
#echo "$SERVICE is not running!" | mail -s "$SERVICE down" root
fi
echo $(uptime) | sed 's/^.\+up\ \+\([^,]*\).*/\1/g'
ls -ltra /etc/hosts
uptime
instmodsh