Author Topic: Python with bash shell  (Read 1020 times)

0 Members and 1 Guest are viewing this topic.

Offline elenaflorenceTopic starter

  • Newbie
  • Posts: 2
  • Country: in
    • Online Platform to Learn Latest Technologies - Codegnan
Python with bash shell
« 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 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. 
« Last Edit: August 20, 2020, 07:09:53 am by elenaflorence »
 

Offline greenpossum

  • Frequent Contributor
  • **
  • Posts: 408
  • Country: au
Re: Python with bash shell
« Reply #1 on: August 20, 2020, 07:13:56 am »
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.
« Last Edit: August 20, 2020, 07:16:49 am by greenpossum »
 

Offline Zucca

  • Supporter
  • ****
  • Posts: 5141
  • Country: it
  • EE meid in Itali
Re: Python with bash shell
« Reply #2 on: August 20, 2020, 07:15:16 am »


Spam?
Can't know what you don't love. St. Augustine
Can't love what you don't know. Zucca
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->