Jump to content



Photo

Linux System Stats Script - Next Generation

linux; stats

83 replies to this topic

#76 ArtistX

ArtistX

    Neowinian

  • Joined: 14-November 12
  • OS: Windows 8.1 Pro x64 - Windows 7 Ultimate SP1 x64

Posted 01 November 2013 - 11:04

works fine :)




#77 Haggis

Haggis

    Neowinian Senior

  • Tech Issues Solved: 12
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 30 March 2014 - 21:09

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



#78 ArtistX

ArtistX

    Neowinian

  • Joined: 14-November 12
  • OS: Windows 8.1 Pro x64 - Windows 7 Ultimate SP1 x64

Posted 31 March 2014 - 16:28

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



#79 Haggis

Haggis

    Neowinian Senior

  • Tech Issues Solved: 12
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 06 July 2014 - 17:13

Hello, are you still getting this issue?

 

any other issue from anyone

 

anything else you would like to see added?



#80 Barney T.

Barney T.

    Debian Linux: I'm Loving It!

  • Tech Issues Solved: 3
  • Joined: 30-August 03
  • Location: Williamsburg, Virginia

Posted 06 July 2014 - 17:15

Pinned!



#81 Haggis

Haggis

    Neowinian Senior

  • Tech Issues Solved: 12
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 15 September 2014 - 13:16

So is anyone getting any issues at all?

 

Is it all working as it should

 

Anything else you want to see it produce?



#82 +Majesticmerc

Majesticmerc

    Resident Idealist

  • Tech Issues Solved: 8
  • Joined: 24-August 05
  • Location: United Kingdom
  • OS: Arch Linux / Win 7
  • Phone: HTC One X

Posted 16 September 2014 - 12:06

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.


#83 cork1958

cork1958

    Neowinian

  • Tech Issues Solved: 2
  • Joined: 04-October 02

Posted 16 September 2014 - 12:52

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



#84 Haggis

Haggis

    Neowinian Senior

  • Tech Issues Solved: 12
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted Yesterday, 22:03

 

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.haggistec...haggis-stats.pl

 

so could you try

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

is this what you meant?