Skip to main content

Questions tagged [watch]

watch will execute a program periodically, displaying the output.

2 votes
1 answer
141 views

I use the script command to save the whole session, but the output in the text file is something weird, and I opened it with the cat command in the terminal, and everything became ok. How can I save ...
Sorenyt Mikelyt's user avatar
0 votes
2 answers
91 views

The setup is I have two folders now under my current directory, busybox-1.36.1 and procps-4.0.4, and I also have a service languagetool running with DynamicUser=yes. Now observe the different ...
Mathias Sven's user avatar
1 vote
1 answer
70 views

What am I doing wrong setting up following watch command? This works: ls -ltr ~/meteofetcher/data/metar/2024/12 | tail -10 | awk '{ print $9 }' | xargs -I {} grep 'LSZH' {} But this watch "ls -...
glades's user avatar
  • 126
-4 votes
1 answer
130 views

I want use shell and see watch on top parallel without switching to another tty. Is theres way to do that?
 ogyrehlosiash's user avatar
-1 votes
1 answer
495 views

What I'd like to have: Running a command y with watch command and have watch command update only as soon as output of command y has changed. Imagine a bash script with 3 lines of echo output Hello ...
futurewave's user avatar
-1 votes
2 answers
101 views

I want to constantly see last 30 lines of code "nfc list ruleset" in Debian Bash. Something like this: watch -n 1 nft list ruleset | tail -n 30 But above code doesn't show last 30 lines of &...
gio's user avatar
  • 19
1 vote
1 answer
448 views

Somehow I'm unable to get this working with color output, it works but no colors are shown. I'm currently using these alias'es in my bash shell: alias Xterm='xterm -geometry 132x60 +dc +cm -e ' alias ...
Tripple Moon's user avatar
-1 votes
1 answer
233 views

I tried watch 'sensors | sudo docker stats' sudo 'docker stats | watch sensors' sudo docker stats | sudo watch sensors So I assume its not possible to display both outputs in one window? Other than ...
cpitts88's user avatar
4 votes
1 answer
4k views

Say I have a function f defined in my bashrc function f() { date } I want to run following command to monitor the output watch f. The command failed with "sh: f: command not found". watch ...
user607722's user avatar
1 vote
0 answers
34 views

I'd like to monitor apps that have inotify instance in real-time with watch using something similar to: watch "for foo in /proc/*/fd/*; do readlink -f $foo; done | grep inotify | sort | uniq -c | ...
Tomachi's user avatar
  • 111
1 vote
1 answer
121 views

I'm currently executing the following: watch -n 100 'sh script.sh >> /path/to/output/output.txt' & It's been running for 30 minutes (I can verify with ps -ef | grep watch), however there's ...
student010101's user avatar
2 votes
1 answer
253 views

I create this alias, so that aliases get expanded in the watch statement. > alias w='watch -x bash -i -c' > alias k=kubectl I execute it: > w 'k get pods; echo; k get svc' After two seconds ...
guettli's user avatar
  • 1,589
1 vote
0 answers
61 views

I have such a bash command ... psql -c "SELECT datname FROM pg_database WHERE datname LIKE 'efa%' OR datname LIKE 'geocms%';" and am wondering how to wrap this into watch -cd "<...
vrms's user avatar
  • 287
1 vote
1 answer
67 views

watch -n1 $() does not update $(). what is the workaround? here is my example: watch -n1 echo $(( $(date +%s -d "sun") - $( date +%s ) )) this results in Every 1.0s: echo 106602 ...
stacking and exchanging woohoo's user avatar
0 votes
1 answer
952 views

so I had the idea of making a bash function that takes in a time in hh:mm:ss (24 hour format) and makes a timer till that time kinda like a one time alarm while also showing how much time is left I ...
stacking and exchanging woohoo's user avatar

15 30 50 per page
1
2 3 4 5
9