williamhughesDOTnet
  • Home
  • Referral
williamhughesDOTnet
  • Home/
  • Referral/
williamhughesDOTnet

IT and Technical consultations.

Blog-old

williamhughesDOTnet
  • Home/
  • Referral/
March 22, 2006

Email Drive Freespace

March 22, 2006/ Will Hughes

mail -s "AGDB1 Drive Space Status" user@domain.com

DriveEmail
#!/bin/sh

DISC=$1
PARTITION=`df -h |grep $DISC |awk '{print $1}'`
SIZE=`df -h|grep $DISC|awk '{print $2}'`
USED=`df -h|grep $DISC|awk '{print $3}'`
FREE=`df -h|grep $DISC|awk '{print $4}'`

echo "Partition: $PARTITION"
echo "Total size: $SIZE"
echo "Used space: $USED"
echo "Free space: $FREE"

March 22, 2006/ Will Hughes/ Comment
Really Geeky Stuff

Will Hughes

  • Remove line from log files
  • Restart mysql if dead
  • Home/
  • Referral/

williamhughesDOTnet

At Hughes Technical Solutions, we take great pride in providing knowledgable and courteous resolutions to your most troublesome technical dilemmas. We have vast experience in supporting businesses and home offices through the minefield that is today's technology. With over 20 years of experience, our goal is to provide our clients with top notch, easy to understand solutions, to technology's most complicated issues. 

Tell us what you think!

We are constantly working to raise the bar on our services. If you have any questions or concerns about your experience, please let us know. 

William
will@williamhughes.net

Powered by Squarespace.