linux - How to turn command output to a live status update? -


i curious if there's tool or easy way continually execute command in given intervals, , reprint output same place on screen.

the example prompted me think 'dropbox-cli status'. manually executed:

$> dropbox-cli status syncing (6,762 files remaining) indexing 3,481 files... $> dropbox-cli status syncing (5,162 files remaining) indexing 2,681 files... 

i looking for:

$> tracker --interval=1s "dropbox-cli status" syncing (6,743 files remaining) indexing 3,483 files 

the imaginary command 'tracker' block , 2 output lines continually reprinted on every second, rather creating appending log output.

you can use watch

watch -n1 dropbox-cli status 

specify time in seconds param -n.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -