Wmii status bar code not updating.

I use the wmii tiling window manager and its status bar abilities. The status bar all works fine except the section for getting the CPUMhz (CPU frequency). It does not get updated properly every 2 seconds as it should.
My code is here:
# Status Bar Info
status() {
echo -n 'CPUTemp:' `expr $(sensors | grep temp1 | awk '{print $2}' | cut -c2-3) + 15` '|' 'CPUMHz:' $(cat /proc/cpuinfo | grep MHz | awk '{printf "%.0f\n", $4}') '|' '/home:' $(df -h | grep sda5 | awk '{print $3}') '|' '/:' $(df -h | grep sda1 | awk '{print $3}') '|' 'RAM:' $(free -m | grep -i /cache | awk '{print $3}') 'MB |' $(uptime | sed 's/.*://; s/,//g') '|' $(date +"%a %b %d %H:%M")
If anyone can point out my mistake it would be greatly appreciated.

Are you sure that the CPUMHz is causing your problem?  When I do
$ sensors
on my machine, I get 2 lines containing 'temp1'.  If that is happening on your machine, then the `expr $(sensors ...) + 15` of your CPUTemp part will not work as you expect.
Other than that, I don't know what is causing your problem, but you could replace
...'CPUMHz: ' $(cat /proc/cpuinfo | grep MHz | awk '{printf "%.0f\n", $4}')...
with
..."CPUMHz: $(awk '/MHz/ { printf "%.0f", $4}' /proc/cpuinfo)"...
If that doesn't help, you could try
..."CPUMHz: $(( $(</sys/bus/cpu/devices/cpu0/cpufreq/cpuinfo_cur_freq) / 1000 ))"...
although on my system, that file is readable only by root.  I don't know why it is set up that way.
You could also break up that long line so that it is easier to read.
status() {
echo -n "CPUTemp: $(( $(sensors | awk '/temp1/ {print $2}' | cut -c2-3) + 15 )) | "
echo -n "CPUMHz: $(awk '/MHz/ { printf "%.0f", $4}' /proc/cpuinfo) | "
echo -n "$(df -h | awk '/sda[15]/ {printf "%s: %s | ", $6, $3}')"
echo -n "RAM: $(free -m | awk '/\/cache/ {print $3}') MB | "
echo -n "$(uptime | sed 's/.*://; s/,//g') | "
echo -n "$(date +"%a %b %d %H:%M")"

Similar Messages

  • HT1544 i have downloaded mac os 10.5 leopard update version successfully . but try to instal it is taking much time and the status bar is not going

    Hi < i have updated my mac 10.5 with 10.5.8 sucessfully , but while instaling it is taking much time and status bar is not showing any progress

    If I remember correctly one of the updates could hang after doing the update. Fixed by a restart but installing a combo update over the top of others rarely does any harm and it may be the best thing to do.

  • I have just updated my iPad2 with iOS 6.3.1. and now I am unable to access my home network. The Wi-Fi icon in the status bar is not shown. Under settings, Wi-Fi it shows my network name and under the Wi- Fi menu, chose a Network it shows it is searching f

    I have just updated my iPad2 with iOS 6.3.1. and now I am unable to access my home network. The Wi-Fi icon in the status bar is not shown.
    Under settings, Wi-Fi it shows my network name and under the Wi- Fi menu, chose a Network it shows it is searching for my network by name and continues to run and run without finding the network.
    Prior to updating to iOs 6.3.1 my system worked perfectly.
    Can anybody help please.

    1. Turn off router for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • After upgrading to IOS 8.1 the activity icon on the status bar will not stop rotating. Any suggestions?

    AAfter upgrading to IOS 8.1, the activity icon on the status bar will not stop rotating. It's like the webpage never completely downloads. Any suggestions?

    Nginear48 wrote:
    Thanks for your quick response. I've tried everything you suggested and get only temporary fixes. Sometimes for a day or two, sometimes only until I use Safari for the first time. It's annoying and probably effects battery life between charges.
    You would think that it must have some effect on the battery, but oddly enough, the update to iOS 8 actually helped my battery life, in spite of all of these hinky little issues that are taking place. In my experience, the activity icon is not affecting the battery in a negative way.
    Another issue with IOS 8.1 that you may have seen is the loss of icon pictures on home pages. Again it seems to be Safari related, since app icons found in the App Store are not affected, only web based icons you personally put on home pages. I get what I call a test screen similar to what you used to get on old tv sets on every one of my personal icons.
    I know exactly what you mean. I got that as well. On a few of them, when I opened the websites using the generic test screen icons and then closed them, they changed back to the way that they should look. For the ones that did not change, I recreated the home screen shortcuts and deleted the generic looking ones - the test screen icons.
    And don't get me started on iBooks.
    For the very limited use that I make of the iBooks app, i haven't noticed any problems, but I rarely use the app. I don't read books on the iPad other than a few user guides and if they are pdf guides, they reside in more reliable and feature rich pdf apps on my iOS device.
    I wish that I had the fix for the spinning activity icon, but everything that I try, is temporary at best. IMO, this is the buggiest iOS update that I have seen, and I have been using iOS devices since iOS 3 on my first iPad. I realize that there are plenty of people that are not experiencing issues, but I have seen a number of weird things that I wish I could fix. None of my problems are major, but they are annoying.

  • Photo stream added to side bar but not updating

    I've added Photo Stream to the Finder Side Bar of OSX Mavericks through the Smart Folder Saved Search option.
    However, the photo stream in the Finder Side Bar is not updating with new pictures taken from my iPhone.
    Would anyone have a solution possibly to allow the photo stream to update and be shown in the Finder?

    Hmmm... not sure about PC but I did have this same problem while syncing to my MAC... the cause was that my contacts sync was conflicting with other sync data... Once I changed settings for Mobile Me with contacts and address book it was resolved...
    For PC... my only guess would be that a program that is told to sync contacts doesn't allow or is conflicting with the assigned photo you've set on iPhone...

  • Status Bar does not show editor details

    In JDeveloper the Status bar shows editor information such as line and column number which helps identify where a problem is.
    This appears to not be working in Raptor. There is an "Editor" tag in the status bar, but no details.

    Issue is resolved. Found another update folder in the app manager, after that update the issue is now resolved.

  • ShowModalDialogue displays status bar when not told to

    Hi
    I am using the below code to display message box to the user
    var sOptions="dialogHeight:150px; dialogLeft:200px; dialogWidth:500px; help:no; scroll:no; status:no;";
    var intRet = theApplication().ShowModalDialog("MsgBox_orig.htm", arr, sOptions);
    Even after passing the value status as ‘no’, the status bar is displayed.
    Browser being used is IE Version : 6.0.2900.2180.xpsp_sp2_qfe.080814-1242
    Siebel Version : 8.0.0.3
    Please let me know how to fix this.

    i was getting the spinning grey wheel in status bar, with no files displaying.
    this thread describes re-launching Finder - which did the trick for me - though my issue was with the internal hard drive, not an external
    https://discussions.apple.com/thread/3649473?start=0&tstart=0

  • Bar code not scanned by scanner machine.

    Hello!
           Problem is there after print the report, bar code is not scanned by  scanner.
    Thank You.

    Hi,
    Do you use crystal report or standard Print Layout?
    if you use Crystal Report, Normally we use font "Code39"
    Try this:
    Add  asterick ( * ) between the text you want to scan.
    e.g.
    asterickDOCNO123456asterick
    asterick is the symbol with no space in between.
    and change the whole string font to Code39
    nd.Q
    Edited by: Andy Quipit Sayus on Aug 9, 2011 12:44 PM
    Edited by: Andy Quipit Sayus on Aug 9, 2011 12:45 PM

  • Billing status in delivery not updated for free-of-charge flow

    Hi,
    I have a free-of-charge flow: sales order-delivery-invoice. The invoice has the net value 0 and do not goes in accounting. The problem is that the billing status in delivery is still "not invoiced" and because of this i can make more invoices for the same delivery/qty. Why the status in not updated? The item categ is relevant for billing (A).
    Thanks.

    You can refer SAP Note 33258 - Processing free-of-charge items.
    Where they talk about Item cat setting, use of Cond Type R100.
    Regards
    JP

  • Linked charts: Error bars are not updated

    Linked charts work well: Changed values for bar graph and line graph y values in Numbers are reflected in Keynote and Numbers after “updating”. However, I cannot get error bars to be updated as well. They just keep the values they had when I first paste a graph into Keynote or Pages.
    Is this a bug, or am I missing something?

    It seems that you missed something.
    In the Pages User Guide we may read:
    *+Updating a Chart Copied from a Numbers Document+*
    +If you’ve created a chart in Numbers, you can copy it and paste it into your Pages document. After it’s been pasted into Pages, the chart remains linked to the data tables it references in Numbers. To change the chart data, open the original Numbers document and edit the data there, save the Numbers document, and then refresh the chart data in Pages.+
    +To update a chart after you’ve updated its linked Numbers table:+
    +• Select the chart on the page and click the Refresh button that appears.+
    +Note: You must save the Numbers document before copying and pasting your chart into your Pages document and after editing the Numbers data tables that the chart references.+
    +page 220 Chapter 10 Creating Charts from Numerical Data+
    Yvan KOENIG (from FRANCE lundi 12 janvier 2009 16:18:08)

  • Finder window: Grey spinning wheel in status bar and not able to access files?

    Can anyone help with this issue which has utterly perplexed me for 24 hours now.
    I have all of my photos and videos stored on an external hard drive. Yesterday the hard drive started misbehaving and when I tried to access files it would simply not load them, the folders would appear empty (even though the files were there) and a grey spinning wheel would appear at the bottom of the finder window. This would then cause the finder to (sometimes) slow down and require restarting.
    This has continued today, the drive seems to be okay according to Disc Utility, Disk Warrior and TechTool - all of them showing no errors but the drive continues to behave very strangely. To be safe I am transferring everything to another drive as we speak.
    In the finder status bar a grey spinning "wheel" will appear in the bottom right corner whenever the drive tries (and subsequently fails) to load content. Here's a screenshot, notice also the icon for the drive changes to a blue icon with a series of wavey lines:
    I've no idea what is causing this or why its happening. It's very odd and the drive will act okay until you try to access files, then it will just indefinately show the grey spinning wheel.
    Strangely a moment ago all of my drives became "read only" (including the Macintosh HD) and were ALL doing this. The problem only occurs when my current Media external hard drive is plugged in, so I'm transferring everything off it (which I hope will be successful). It does this on any machine its plugged in to, yet it's not got any problems according to various tests with disk utility etc.
    Any help?

    i was getting the spinning grey wheel in status bar, with no files displaying.
    this thread describes re-launching Finder - which did the trick for me - though my issue was with the internal hard drive, not an external
    https://discussions.apple.com/thread/3649473?start=0&tstart=0

  • Bar code not printed properly

    Hi,
    I am facing a strange problem. I have to print one bar code in a form window but what happens is that in a specific window the bar code is not printed.  If i try to print the same field as a bar code in another window the bar code is printed.
    I try the same paragraph formats before i wrote this message and the result is the same, in that window i can not print the bar code.
    There are some optiosn that made impossible the bar code print in a specific windows
    Thanks in advance.
    <removed_by_moderator>
                         Best Regards
                                  João Fernandes
    Edited by: Julius Bussche on Sep 10, 2008 11:18 AM

    Hi,
    Create the barcode and include the barcode in the paragraph format in smartstyle.Include this smartstyle in the smartforms
    after that create the text node for the barcode in your mainwindow and below this text node create one more text node and drag and drop the required fields.
    Regards,
    Sravanthi

  • Battery Status Indicator (in menu bar) does not update

    I've recently noticed that the battery status indicator in the menu bar gets "stuck," and won't update. I can force it to update by disabling and re-enabling it, or by changing the view style, but if I leave it alone, it won't change, even across sleep/wake cycles.
    Any ideas?

    Actually, the problem disappeared after a reboot. I reboot so infrequently, I didn't even consider that as a solution, but something else caused me to need to reboot, and after that, the indicator works fine.
    Still no idea what caused it to get stuck in the first place, but for now, it's better.
    Good luck!

  • Reg : User status information is not updating in Cube

    Hi Experts,
    I am loading data to INfocube which gets data from sales order ODS and Master data infoobject PROJECT which has project  code. User status is a attribute fo Project (Master data infoobject). 1 WEEK before user staus was changed for a particular Project code in source system ECC system .If i display data in Master data PROJECT ,I could able to see changed user staus for that particular Project code.
    Later data loaded to cube from Master data and ODS.If I select a particular Project code and give a sales document number and try to see user status which got changed ,it is not showing changed User status and values are not showing in Infocube.But when i try for another project code its showing correct User status in INfocube.
    Kindly guide me to solve this issue.
    Thanks in advance!

    ACR for Master data load was happend already and we can able to see changed user status in Master data.
    But we are unable to view user status ,SALES document values for that particular project code. Sales document is extracting from ods.

  • Goods Movement status of delivery not updated from C to A

    Hi
    I am facing a peculiar problem.
    We reversed goods issue using VL09 however the goods movement status of the delivery has not been updated. The GM status is still showing C- Completely processed.
    If we are trying to repeat the process again thinking that reversal has not been done using VL09 for that particular delivery error message is displaying already the goods reversed.
    Here we are missing the link. Though the goods reversed status has not been reflecting in the delivery.
    Regards
    Maruthi
    Edited by: MARUTHI RAM on Apr 18, 2009 1:25 AM

    1)  First check in MB51 with movement type 602 whether you could see the delivery reference
    2)  Next go to VOV7, select your item category and see what is maintained for the field "Completion Rule".  It should have been "B".
    3)  Next go to VTLA, select the item category for the combination of your order type and delivery type and see whether you have maintained "+"  for the field "Pos./neg. quantity"
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Can i use Internal DHCP on WLC Guest Anchor (5508) with Foreign HA 5508

    DHCP Proxy is required in order to use local WLC DHCP Pool (Guest Anchor), however reading Wireless Q&A (http://www.cisco.com/image/gif/paws/107458/wga-faq.pdf) states that both foreign and guest anchors must have : In a Wireless guest access setup,

  • Re: windows server 2012 - winload.exe missing or contains errors

    i've noticed mine is ver 4.3 and there's a ver 5 from their website, annoying because it said do i want to update the other day so it did and it seems it didn't bother doing ver 5 and was just a minor update

  • Some lines dont print when i print a form

    When i print a page all the horizontal lines dont print on the page.Can someone help with this problem.I am using Acrobat Reader 7 and Vista.Thanks

  • Netbeans org.openide package problem

    Hi, I wanted to set a menemonic for the menu with an '&Something' Netbeans asked me to import some package to what I naively agreed, but as it happens I don't have that package on my computer so the problem is that the program(s) don't compile becaus

  • Pathetic support from Lencare

    I have purchased Lenovo AIO IdeaCenter B340 in July 2013. Within a week I found it developed white patches on the screen after an hour use. I had complained this to the shop but he advised me to go through Lenovo customer care. It took me 1 month to