Linux System Stats Script - Version 2.2.1 Released


Recommended Posts

  • 4 months later...
  • 3 months later...
  • 2 months later...

Working fine for me :)

I've got a couple of suggestions if you're accepting though:

  • Swap the available/used values in RAM and Swap so that used comes first (e.g. RAM (available/used): 1.2GiB / 8GiB. Putting the "used" value first makes it more intuitive.
  • Maybe detect if the output is a file (rather than the console), and if so remove the colouring from the output and omit the screenshot?
    For example:
    karl@PHOBOS (~) -> haggis-stats > output.txt
    karl@PHOBOS (~) -> cat output.txt
    <output>
    karl@PHOBOS (~) -> |
    
  • Use environment variables to determine where to save the screenshot. For example setting "export HAGGIS_STATS_SCREENSHOT_DIR="~/Pictures/Screenshots" should force screenshots to be saved in that directory, rather than in my current working directory.
  • Use an environment variable to specify the default action of the script. For example setting "export HAGGIS_STATS_DISABLE_SCREENSHOT=1" in my .zshrc should stop the script from screenshotting by default.

And that is one reason that you're an m.v.c. and one reason why I switched from Fedora to Debian lol You'e done a great job in the Linux section :)

 

Exactly why I even tried Debian was from seeing how much help xorangeman/Karl helped here in these forums! :)

 

Him alone, is way better than that crap Ubuntu forum and I've never had any luck with any derivative of Ubuntu anyway either.

 

Used to like Zenwalk a whole lot but as usual, simply tired of switching from Windows to Linux. Still use Windows mainly but have Wheezy on 2 machines that haven't gotten screwed up since installing over a year ago! I've never had a Linux distro last that long that didn't get messed up some way simply by an update of some type.

 

Might even have to give this script a try just to have something new to play with!!

 

Thanks guys :)

 

Working fine for me :)

I've got a couple of suggestions if you're accepting though:

  • Swap the available/used values in RAM and Swap so that used comes first (e.g. RAM (available/used): 1.2GiB / 8GiB. Putting the "used" value first makes it more intuitive.
  • Maybe detect if the output is a file (rather than the console), and if so remove the colouring from the output and omit the screenshot?

    For example:

    karl@PHOBOS (~) -> haggis-stats > output.txt
    karl@PHOBOS (~) -> cat output.txt
    <output>
    karl@PHOBOS (~) -> |
    
  • Use environment variables to determine where to save the screenshot. For example setting "export HAGGIS_STATS_SCREENSHOT_DIR="~/Pictures/Screenshots" should force screenshots to be saved in that directory, rather than in my current working directory.
  • Use an environment variable to specify the default action of the script. For example setting "export HAGGIS_STATS_DISABLE_SCREENSHOT=1" in my .zshrc should stop the script from screenshotting by default.

 

 

 

 

hey

 

working my way through this

 

Switched the Used and Total

 

also tried the display with no colors for files

 

file is at http://www.haggistech.co.uk/haggis-stats.pl

 

so could you try

haggis-stats file > /path/to/file.txt

is this what you meant?

ok

 

I have done

 

  • Swap the available/used values in RAM and Swap so that used comes first (e.g. RAM (available/used): 1.2GiB / 8GiB. Putting the "used" value first makes it more intuitive.
  • Maybe detect if the output is a file (rather than the console), and if so remove the colouring from the output and omit the screenshot?
  • Use environment variables to determine where to save the screenshot. For example setting "export HAGGIS_STATS_SCREENSHOT_DIR="~/Pictures/Screenshots" should force screenshots to be saved in that directory, rather than in my current working directory.

anyone willing to test for me?

 

Link below please report back here

 

http://www.haggistech.co.uk/haggis-stats_2.2.0_all.deb

Hey dude, I'll give it a try this weekend hopefully. I'm stuck in the middle of a tight deadline so I've literally been going between my bed and the office.

Finally got around to checking this stuff out last night. Looks good! Everything seems to work fine. My only comment is that it seems a bit unecessary to have to do this...

haggis-stats file > output.txt

... when you can detect automatically whether or not output is being redirected to a file, allowing you to simply do this ...

haggis-stats > output.txt

Otherwise, it all looks sweet :)

thanks i will look at that

 

still learning perl so bear with me

 

Please don't take my comment as a downer, you've done a great job with this. Just let me know when you're ready to do a release and I'll update the Arch AUR package :)

woooooo managed to do the output one

would anyone like to test

http://www.haggistech.co.uk/stats/haggis-stats_2.2.1_all.deb


so you can now do

haggis-stats > output.txt 
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Yeah, this is absolutely nothing new and EA have done it before. Burnout Paradise, released in 2008, had dynamic advertising billboards that were updated via the internet and targeted people based on location and what EA knew about them from their profile. It was particularly notable for the fact that the Obama presidential campaign ran ads in the game, in an attempt to reach a younger audience who didn't watch broadcast TV any more. It was by no means the first though. Battlefield 2142 from 2006 had the same thing. In fact, Neowin wrote a story about it back then. https://www.neowin.net/news/ba...-in-game-ads-clarification/
    • This is obviously aimed at the education where Apple has lost so much ground to Chromebooks in the last few years, but unless they come up with a comparable management system for education why would anyone switch back?
    • Here's how we arrived at that claim: Note that this is just Play Store downloads. The app is also available on the Galaxy App Store
    • Google Play states the app had more than 50 million downloads. What other metric do you suggest should be used?
    • MSN defined our generation in some ways, kind of like Snapchat and TikTok have done for future generations. I have great memories of the MSN era in the late 90s / early 2000s. In the UK everyone seemed to come home from School and go on MSN for the evening. We didn't really have mobile phones then, so other than going and knocking on your friends door it was a totally new way of interacting with people. I also loved how I could talk to people I’d met playing online games from around the world. Inviting people to NetMeeting and messing about with the shared white board and webcams was pretty fun, even if webcams only ran at a couple of fps over dial-up. All the random things you could do with MsgPlus! were really fun - I suspect that made a few people jump with /shello randomly blasting Mr Hankey out their speakers! Maybe I’m just nostalgic, however I do feel the internet and computers were more fun back then.
  • Recent Achievements

    • One Year In
      Console General earned a badge
      One Year In
    • One Year In
      Twozo Technologies earned a badge
      One Year In
    • One Month Later
      Twozo Technologies earned a badge
      One Month Later
    • Week One Done
      Twozo Technologies earned a badge
      Week One Done
    • Veteran
      branfont went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      532
    2. 2
      +Edouard
      206
    3. 3
      PsYcHoKiLLa
      132
    4. 4
      Steven P.
      90
    5. 5
      neufuse
      75
  • Tell a friend

    Love Neowin? Tell a friend!