Results 1 to 10 of 96

Thread: Step by step guide to setting up Ubuntu 11.10 server for Newbies!

Threaded View

  1. #17
    Join Date
    Apr 2012
    Beans
    1

    Re: Step by step guide to setting up Ubuntu 11.10 server for Newbies!

    Thank you for this guide.

    I modified the script hddtemp_monitor.sh for use with seagate and WD drives. I have both and it seems that WD drives have an additional character which is recognized as a delimiter in awk:

    From:
    Code:
    HDTEMP=$($HDT $disk | awk '{ print $4}' | awk -F '°' '{ print $1}')
    To:
    Code:
    HDTEMP=$($HDT $disk | sed 's/\(.*\)://g' | awk -F '°' '{ print $1}')
    I thought that others may find use for it.

    Of course, if you had all seagate drives then you could just usethe following instead:
    Code:
    HDTEMP=$($HDT $disk | awk '{ print $3}' | awk -F '°' '{ print $1}')
    Again, thanks for the guide... very useful

    EDIT: For the coretemp stuff, couldn't a default value be used instead of an additional conditional statement that checks for numbers?
    Last edited by meanmoe32; April 7th, 2012 at 07:27 AM. Reason: added code tags

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •