/lab/sipmscan/trunk/mpod/test.sh |
---|
1,7 → 1,31 |
#!/bin/bash |
echo "Bash start." |
sleep $1 |
echo "Bash end." |
snmpsearch="--snmp-install=" |
for var in $@ |
do |
case $var in |
"$snmpsearch"*) |
echo "Mached argument: $var" |
snmpdir=${var#$snmpsearch} |
echo "SNMP directory = $snmpdir";; |
*) ;; |
# echo "Unmached argument: $var";; |
esac |
done |
printenv PATH | grep "snmp" |
if [ $? == 0 ]; then |
echo "Something found." |
else |
echo "Nothing found." |
fi |
printenv ROOTSYS > /dev/null |
if [ $? == 0 ]; then |
echo "Something found." |
else |
echo "Nothing found." |
fi |
exit 0 |
/lab/sipmscan/trunk/mpod/test.sh.bak |
---|
1,7 → 1,24 |
#!/bin/bash |
echo "Bash start." |
sleep 5 |
echo "Bash end." |
snmpsearch="--snmp-install=" |
for var in $@ |
do |
case $var in |
"$snmpsearch"*) |
echo "Mached argument: $var" |
snmpdir=${var#$snmpsearch} |
echo "SNMP directory = $snmpdir";; |
*) ;; |
# echo "Unmached argument: $var";; |
esac |
done |
printenv PATH | grep "snmp" |
if [ $? == 0 ]; then |
echo "Something found." |
else |
echo "Nothing found." |
fi |
exit 0 |