Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Thursday January 17 2019, @01:45AM   Printer-friendly
from the automation++ dept.

Hi all,

I have been learning linux and have a secondary monitor that I wanted to use for showing some sensor data. Currently I need to manually enter in three commands and then arrange my windows each time I want to look at (and start-up, etc). I am using the nethogs, inxi, and lm-sensors libraries:

sudo nethogs
watch -n1 "inxi -s"
watch -n1 "sensors | grep Tdie"

The end result looks something like this:
https://i.ibb.co/TgWXKSn/sensors.png

Is it possible/easy to script the opening of these three terminal windows and position them onto a specific monitor? Or is there a completely different better way to go about this?

Also, is there a way for me to custom arrange the data on the screen? Eg, could I put the sensors "Tdie" data into two columns and remove the "high = +70.0 C" info?

[Beyond this specific case, is there a general solution with, say, a directory containing a separate shell script for launching each program, with a master script that specifies terminal width/height as well as (x,y) coordinates? --Ed.]


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by DannyB on Thursday January 17 2019, @04:21PM (5 children)

    by DannyB (5839) Subscriber Badge on Thursday January 17 2019, @04:21PM (#787916) Journal

    Give it up already.

    Marketing always, ALWAYS screws up perfectly good descriptive terminology. (And sometimes it is Hollywood instead of marketing.)

    Windows is an "operating system". So is iOS and MacOS. And Linux. And Emacs, . . uh, oh, wait . . . nevermind that one.

    So get over it. The words Operating System no longer have a solid meaning. Or it doesn't mean what we once understood it to mean. Kernel is a good word. But once it starts getting much traction, marketing and hollywood will screw that up too.

    Back in the late 1980's look at what happened to the term "relational database". Suddenly any simplistic desktop database product that could even remotely somehow access a record in another table from the current record was "relational" and the entire product was a "relational database". The term fell out of use because it completely lost its meaning.

    Sometimes it's not marketing but just the stupidity of the public. I have seen news broadcasts where the the story is about a radio telescope, they show a picture of a big parabolic dish antenna and call it "a satellite". (insert slap on the back of the head)

    You know that mini tower that sits on your desk that you call a computer? That is a "hard drive". How many times have you heard that one?

    Oh, and now there is 5G for your phone! So much more gooder than 4G. Soon there will be 6G even without any technical changes.

    --
    The lower I set my standards the more accomplishments I have.
    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2  
  • (Score: 2) by acid andy on Thursday January 17 2019, @09:48PM (2 children)

    by acid andy (1683) on Thursday January 17 2019, @09:48PM (#788036) Homepage Journal

    You know that mini tower that sits on your desk that you call a computer? That is a "hard drive". How many times have you heard that one?

    None, AFAICR, but I've had the misfortune of hearing people refer to it as the "processor". Not quite as bad a sin, I suppose. It does process information at least as much as it computes, so maybe I should let them off.

    --
    If a cat has kittens, does a rat have rittens, a bat bittens and a mat mittens?
    • (Score: 2) by DannyB on Thursday January 17 2019, @11:08PM (1 child)

      by DannyB (5839) Subscriber Badge on Thursday January 17 2019, @11:08PM (#788064) Journal

      I think calling the computer the "hard drive" was a thing more so back in the early 2000s and late 1999s.

      --
      The lower I set my standards the more accomplishments I have.
      • (Score: 2) by acid andy on Thursday January 17 2019, @11:14PM

        by acid andy (1683) on Thursday January 17 2019, @11:14PM (#788070) Homepage Journal

        Long enough ago for those brain cells in my memory to have died off then. :)

        --
        If a cat has kittens, does a rat have rittens, a bat bittens and a mat mittens?
  • (Score: 3, Insightful) by Arik on Friday January 18 2019, @10:03AM (1 child)

    by Arik (4543) on Friday January 18 2019, @10:03AM (#788185) Journal
    "Marketing always, ALWAYS screws up perfectly good descriptive terminology."

    Which is why the only sane answer to marketing is always "no."

    Think about this for a moment. This is what makes us more than just a particularly ill-equipped species of monkey. Our language. Our ability to time-bind, to hold memories and conversations longer than our own lifespans. Even tool use, beyond the simplest and most obvious levels, really depends on this.

    This is the vein that marketing strip mines. Millenia of human thought, of knowledge, of philosophy and culture - they treat it like the coal companies treated the mines of Kentucky and the Virginias a few decades ago. They suck every penny they can out of it as fast as they can and leave a gaping useless wound where a one great language stood.

    That's our language, not theirs. Just say 'no' to marketing.
    --
    If laughter is the best medicine, who are the best doctors?
    • (Score: 2) by DannyB on Friday January 18 2019, @02:09PM

      by DannyB (5839) Subscriber Badge on Friday January 18 2019, @02:09PM (#788231) Journal

      But what about Hollywood.

      They can misuse some technical term in a movie that becomes a cultural icon and the damage is done.

      --
      The lower I set my standards the more accomplishments I have.