EEVblog Electronics Community Forum
Products => Test Equipment => Topic started by: elenaflorence on August 20, 2020, 07:07:02 am
-
Hello Guys following Question,
i have a Programm that sends me every second in the Terminal(its a Python (https://codegnan.com/python-course-online-certification-training) print function) a refresh about some data. I would like to know if its possible to write a bash shell with python that only refreshes the stats of an shown value in an a bash shell.
Thanks for your help in advance.
-
Perhaps running the Python script under the "watch" program in a separate terminal window can meet your needs? This only works if the program is run afresh each time.
If it runs continuously you could send the clear screen sequence so that the new output overlays the previous output.
-
(https://media3.giphy.com/media/xTiTnHXbRoaZ1B1Mo8/200.gif)
Spam?