Announcement

Collapse
No announcement yet.

[solved] script question for WaterMark Screenlet

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [solved] script question for WaterMark Screenlet

    I like to use the watermark screenlet to monitor my hardware so I installed
    Screenlets and all the necessary dependencies. All the watermark screenlets are
    working except the python script for cpu speed.
    When I log in I get an error message in the screenlet.

    error message for watermark cpu speed after login
    intel Q6600 @ 2400
    GHzgawk:/^cpu MHz/
    {print "
    gawk: ^
    unterminated string

    I re-enter the python script and it loads the correct values.
    The default script I have to reload is:
    Code:
    #cat /proc/cpuinfo|gawk -F: -- '/^cpu MHz/{ print "\n" int($2) " MHz"; }'|tr -s
    '\n\n' '\n'
    Is there another way to write the script so it loads automatically?
    I entered the hash mark in the code box because I didn't want to blow up the internet.
    OS: Win7 Prof. X64, XP Prof. x86. WD 160GB X3 RAID 0<br />&nbsp; &nbsp; &nbsp; Kubuntu 10.04 Lucid X64 LTS. <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10.10 Maverick X64 KDE 4.6.2<br />MB: abit IP35 PRO. Q6600 OC: 3204MHz. <br />RAM: OCZ 1066MHz 8GB (4X2GB) <br />Graphics: Nvidia 9800GTX+ OC: 823/1265<br />Displays: LG 1280X1024. Asus 1680X1050

    #2
    Re: script question for WaterMark Screenlet

    not familiar with screenlets, as they seem to be a compiz thing, but you might have more knowledgeable folks over at the compiz forum for screenlets, though maybe someone here has some good info for you

    Comment


      #3
      Re: [solved] script question for WaterMark Screenlet

      Thanks for the link. Screenlets are a gnome package. I didn't find anything at the compiz [or ubuntu] forum. I finally found what I needed with google.
      OS: Win7 Prof. X64, XP Prof. x86. WD 160GB X3 RAID 0<br />&nbsp; &nbsp; &nbsp; Kubuntu 10.04 Lucid X64 LTS. <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10.10 Maverick X64 KDE 4.6.2<br />MB: abit IP35 PRO. Q6600 OC: 3204MHz. <br />RAM: OCZ 1066MHz 8GB (4X2GB) <br />Graphics: Nvidia 9800GTX+ OC: 823/1265<br />Displays: LG 1280X1024. Asus 1680X1050

      Comment


        #4
        Re: [solved] script question for WaterMark Screenlet

        Originally posted by ccnjim
        I finally found what I needed with google.
        And that was what? You asked for help, then found an answer on your own (good job). So others may benefit, it is standard forum etiquette to post answers/solutions to questions asked.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: [solved] script question for WaterMark Screenlet

          And that was what? You asked for help, then found an answer on your own (good job). So others may benefit, it is standard forum etiquette to post answers/solutions to questions asked.
          Please accept my apology. I see what you mean. By marking my thread solved it should include the solution I found.

          The command I finally found is:
          Code:
          cat /proc/cpuinfo | grep MHz
          I inserted it into the custom sensor command line. Changed the dimensions of the WaterMark screenlet until the layout worked for me. Tested it with glxgears and it works fine.

          I preferred the way it looked with the python script but this way it starts by itself.

          OS: Win7 Prof. X64, XP Prof. x86. WD 160GB X3 RAID 0<br />&nbsp; &nbsp; &nbsp; Kubuntu 10.04 Lucid X64 LTS. <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10.10 Maverick X64 KDE 4.6.2<br />MB: abit IP35 PRO. Q6600 OC: 3204MHz. <br />RAM: OCZ 1066MHz 8GB (4X2GB) <br />Graphics: Nvidia 9800GTX+ OC: 823/1265<br />Displays: LG 1280X1024. Asus 1680X1050

          Comment

          Working...
          X