[mrtg] Problem with a shell script and Mrtg, thank you, and the solution

Godfrey godfrey_lists at compudoc.za.org
Mon Jun 30 22:53:13 MEST 2003


I would like to thank all of you who took the trouble to write to me with 
your suggestions.

I thought I would share with you the solution to the problem. The solution 
was given to me by Greg M whom I owe a  big thank you !




statname="Client Accounts"

cd /home/full

full=$[`ls -l | grep -v ^l | wc -l`]

cd /home/guest

guest=$[`ls -l | grep -v ^l | wc -l`]


echo $total
echo $[guest]
echo "statname"

cd /

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list