Glances: cross-platform system monitoring tool written in Python
11–20 of 21 posts
Re: Glances: cross-platform system monitoring tool written in Python
#12$ curl -L https://bit.ly/glances | /bin/bash That (curl|bash) is really shady. Not saying the software is malicious, but if you're going to install it I wouldn't do it like that.
https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...
Re: Glances: cross-platform system monitoring tool written in Python
#13Re: Glances: cross-platform system monitoring tool written in Python
#14Earlier quoted context omitted.
Why is a pypi package better than a bash script? Or is it the URL shortener that concerns you?
Because a pypi package can be compared to a source. A piped bash script might change per-client or per-request.
Re: Glances: cross-platform system monitoring tool written in Python
#15$ curl -L https://bit.ly/glances | /bin/bash That (curl|bash) is really shady. Not saying the software is malicious, but if you're going to install it I wouldn't do it like that.
No one should be installing anything from curl-to-shell pipelines - but sadly, they do.
Re: Glances: cross-platform system monitoring tool written in Python
#16Re: Glances: cross-platform system monitoring tool written in Python
#17$ curl -L https://bit.ly/glances | /bin/bash That (curl|bash) is really shady. Not saying the software is malicious, but if you're going to install it I wouldn't do it like that.
Agreed, especially since there's a pypi package available.
And through a third party url shortener of all things?! There's no guarantee what'll come out the other side of a bit.ly link... At least leverage github directly, rather than add another level of indirection ...
Looking at the pointer: https://raw.githubusercontent.com/nicolargo/glancesautoinsta...
It doesn't even appear to support os x, installs via pip anyway (as root, unconditionally if you happen to have sudo credentials cached, or allow the script to elevate privileges).
This is probably never what you want, with the possible exception of a docker image, chroot/jail or similar.
And it really makes little sense to hard-depend on bash/sh for a cross-platform python utility - if pip install is too complicated, it shouldn't be too arduous to provide a sane python script for installation, that does most of this song and dance [and default to a virtual env] on all supported platforms. It's not like it can run without python, anyway...
Re: Glances: cross-platform system monitoring tool written in Python
#18$ curl -L https://bit.ly/glances | /bin/bash That (curl|bash) is really shady. Not saying the software is malicious, but if you're going to install it I wouldn't do it like that.
Re: Glances: cross-platform system monitoring tool written in Python
#19As a ballpark measurement, running htop for 60s with a 3s refresh interval takes 0.2s of user time. Running glances (even with almost all modules plugins disabled) for the same amount of time takes 6.7s of user time.
I still use glances every now and then, but I don't leave it running like I might with htop
Re: Glances: cross-platform system monitoring tool written in Python
#20I feel it's feeding too much data to the screen. I prefer gotop which is a little too simple but usually good enough to check things out.