Quantcast
Channel: Is there a paging version of `watch`? - Server Fault
Browsing latest articles
Browse All 14 View Live

Answer by Jacques Lemieux for Is there a paging version of `watch`?

In case this could be useful to others, this is how I solved the issue on my side. In the "cmd" function, plug any command you want to monitor.#!/bin/bashfunction cmd { sudo lsof -i -n -P | grep...

View Article



Answer by Khalid M. Kahloot for Is there a paging version of `watch`?

I edited the script here to work with command line#!/bin/bash## watch a file and scroll## keys => arrow-up/down, page-up/down, pos1, end## usages:# swatch -n <timeout_watch> <file>#...

View Article

Answer by Fabrício Ceolin for Is there a paging version of `watch`?

I am using this:while cat /etc/wgetrc; do sleep 10; done | pv -q -L 150 | tail -n +0 -f

View Article

Answer by Mohammad Fatemipour for Is there a paging version of `watch`?

I implement a simple python script to satisfy this request, named "watchall"get it by:pip install watchallreplace watch with watchall and enjoy scrollable screen.now it only supports -n and -d flags.

View Article

Answer by geeklin for Is there a paging version of `watch`?

How about just: tail -f

View Article


Answer by Lester Cheung for Is there a paging version of `watch`?

Multitail: http://www.vanheusden.com/multitail/Example: vmstat 1 |multitail -jScroll back by press 'b' and page/arrow up/down.

View Article

Answer by Shawn Chin for Is there a paging version of `watch`?

Here's a rather crude script that seems to work for several commands that I threw at it#!/bin/bash# ---- mywatch.sh ----if [ $# -lt 1 && $# -gt 2 ]; then echo "Usage: $0 <command>...

View Article

Answer by MikeyB for Is there a paging version of `watch`?

Rather than modifying the 'watch' command, use screen!For example, let's say that you need to be able to see 300 lines of height and 100 characters of width and move around that. After starting screen,...

View Article


Answer by anon for Is there a paging version of `watch`?

To continue on enkrs's answer, watch 'qstat | head -300 | tail -15'will get you arbitrary pages into the qstat's output.

View Article


Answer by enkrs for Is there a paging version of `watch`?

I don't see how this could be implemented as the row contents change, and watch would reset back to first line every 2 seconds even if you could scroll down.Some workarounds are:watch 'qstat | tail...

View Article

Answer by Spacen Jasset for Is there a paging version of `watch`?

You can try this:$ while vmstat; do sleep 1; done | lessreplace vmstat with qstat and adjust the sleep to your needs.

View Article

Answer by David Dean for Is there a paging version of `watch`?

OK, I've had a little go at a watchless function. It's a bit rough, and it doesn't yet appear to completely work, but here goes:#!/bin/bash -uout=$(mktemp)(while [ 1 ]; do"$@"> $out; sleep 2;done)...

View Article

Answer by dfa for Is there a paging version of `watch`?

you can try:watch command > filethen in your file you should see the appendend output (I don't have a linux box rigth now to test this)

View Article


Is there a paging version of `watch`?

Under a UNIX shell, how can I get a similar effect to the watch command, but with paging so that I can scroll around in the output if it takes up more than one screen?In other words, I want a program...

View Article
Browsing latest articles
Browse All 14 View Live


Latest Images