• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

Sign in to follow this  

Linux System Stats Script - Version 2.2.1 Released

Recommended Posts

Art_X    85

works fine :)

Share this post


Link to post
Share on other sites
Haggis    1,008

still working on this when i can, has anyone come across any issues?

Share this post


Link to post
Share on other sites
Art_X    85

I have been trying to fix the issue of it showing name="laptop" on Gentoo so that it just shows Laptop, but my linux scripting sucks, other than that it works fine for me :)

Share this post


Link to post
Share on other sites
Haggis    1,008

Hello, are you still getting this issue?

 

any other issue from anyone

 

anything else you would like to see added?

Share this post


Link to post
Share on other sites
Barney T.    2,327

Pinned!

Share this post


Link to post
Share on other sites
Haggis    1,008

So is anyone getting any issues at all?

 

Is it all working as it should

 

Anything else you want to see it produce?

Share this post


Link to post
Share on other sites
+Majesticmerc    872

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.
  • Like 1

Share this post


Link to post
Share on other sites
cork1958    1,669

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 :)

Share this post


Link to post
Share on other sites
Haggis    1,008

 

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?

Share this post


Link to post
Share on other sites
Haggis    1,008

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

  • Like 1

Share this post


Link to post
Share on other sites
+Majesticmerc    872

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.

Share this post


Link to post
Share on other sites
Haggis    1,008

no worries

 

if it works ok will add in the Disable Screenshot too :)

Share this post


Link to post
Share on other sites
+Majesticmerc    872

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 :)

Share this post


Link to post
Share on other sites
Haggis    1,008

thanks i will look at that

 

still learning perl so bear with me

Share this post


Link to post
Share on other sites
+Majesticmerc    872

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 :)

Share this post


Link to post
Share on other sites
simplezz    863

Just tried this out. Great job guys. Thanks for the AUR package Majesticmerc (Y)

Share this post


Link to post
Share on other sites
Haggis    1,008

would be interesting to see how many downloads this has had

Share this post


Link to post
Share on other sites
+Majesticmerc    872

Yeah that would be nice. The AUR doesn't provide those stats though :(. Is there anything on Github that tells you?

Share this post


Link to post
Share on other sites
Haggis    1,008

nah the deb file is on dropbox just now, gonna add it to my own site so can me counted

Share this post


Link to post
Share on other sites
+Majesticmerc    872

I'm just about to set off from work, I'll let you know when I get chance to play when I'm back :)

Share this post


Link to post
Share on other sites
Haggis    1,008

cool no worries, going to bed soon anyway :)

 

having an issue on mint where it wont grab all the screen

 

post-229387-0-93707900-1412107304.png

Share this post


Link to post
Share on other sites
Haggis    1,008

seem to be an issue with import as i did not have scrot installed

Share this post


Link to post
Share on other sites
+Majesticmerc    872

Checked out your latest updates and it looks good :)

Share this post


Link to post
Share on other sites
Haggis    1,008

ok cool

 

let me tidy it up and then i will upload the deb file :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.