system admins: easy 1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zester
    Confirmed User
    • Jul 2003
    • 5344

    #1

    system admins: easy 1

    give me a 1 line command to tell me how much free space I have on my hard disk using SSH/Bash on a Unix system and If it's lower then 100mb to send me a letter.
    Last edited by Zester; 04-11-2005, 12:28 AM.
    * Mainstream ? $65 per sale
    * new male contraception
  • Zester
    Confirmed User
    • Jul 2003
    • 5344

    #2
    Originally posted by Zester
    give me a 1 line command to tell me how much free space I have on my hard disk using SSH/Bash on a Unix system and If it's lower then 100mb to send me a letter.
    c'mon, its suppose to be easy, the "df" command and the "mail" command
    * Mainstream ? $65 per sale
    * new male contraception

    Comment

    • pstation
      Confirmed User
      • Jul 2003
      • 1135

      #3
      oops, wrong thing

      Comment

      • Workshop_Willy
        Confirmed User
        • Oct 2004
        • 452

        #4
        Originally posted by Zester
        give me a 1 line command to tell me how much free space I have on my hard disk using SSH/Bash on a Unix system and If it's lower then 100mb to send me a letter.

        for which mounted filesystem?
        FREE Retouch - get a gratis from the best there is!


        Do the Mess-Around...

        Comment

        • darksoul
          Confirmed User
          • Apr 2002
          • 4997

          #5
          what do you do ?
          you post a lot of newb questions daily.
          have you met google ?
          1337 5y54|)m1n: 157717888
          BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
          Cambooth

          Comment

          • fris
            I have to go potty
            • Aug 2002
            • 55751

            #6
            df -H

            will show you that
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


            Totally Free Templates

            Comment

            • prime
              Confirmed User
              • Feb 2005
              • 400

              #7
              Zester mr. google is waiting for you

              | offshore solutions | manual labor | staff leasing | and more!
              Dedicated -Motivated-Managed Employees
              icq.: 309570461 live chat

              Comment

              • SinisterStudios
                Confirmed User
                • Nov 2003
                • 3087

                #8
                Dude, if you dont know that you should;

                Step Away From the Console and go back to windows.

                I think DF is like the 2 or 3 command i learned in unix/linux
                SEOIP.com
                Multiple IP Webhosting
                Shared and Dedicated IP's - Multiple Class A's - From $1.99/ip

                Comment

                • pstation
                  Confirmed User
                  • Jul 2003
                  • 1135

                  #9
                  free=`df -k | awk '{sum += $4;}END{print sum}'`; if [ $free -gt "`expr 1024 \* 1024 \* 100`" ]; then echo "Space is dangerously low" | mail -s "System Alert" [email protected]; fi;
                  try that....

                  Comment

                  Working...