watch - execute a program periodically, showing output fullscreen

learn more… | top users | synonyms

0
votes
1answer
30 views

Any apps that auto sync local to remote on save for mac?

Does Panic's Transmit has this feature? For example you set it to watch a particular folder, and any file changes in that folder gets uploaded to the remote automatically? They were highly ...
1
vote
0answers
21 views

How to prevent SafeConnect from repeatedly accessing disk

When I run Impulse Point's SafeConnect on a Mac then when I monitor filesystem activity with fswatch I notice that SafeConnect is repeatedly accessing ...
0
votes
0answers
22 views

How to clean up output from `watch git gc`?

git gc updates the output as it runs, perhaps using backspaces, control characters, and/or curses. (I'm not an expert on this.) How can I modify my watch -n 60 git gc bash command so that the output ...
0
votes
0answers
10 views

Watch file in a directory whether it is being downloaded or not

I am using linux. I am saving a livestream file using rtmpdump rtmpdump "ALL the required parameters" live1.flv Many times the rtmp or livestreaming stops after 400 - 1000 sec. So again I start ...
1
vote
1answer
37 views

Show last 5 opened processes in terminal?

I am trying to have a terminal showing the last 5 processes opened. This is helpful for my debugging. At this point I have watch ps -ef --sort=start_time This works fine but it shows all processes ...
0
votes
0answers
24 views

watch mysql output w/ tabular columns

how come when I run a mysql query and dump the results to stdout I get a pretty printed table ie: > mysql -e "describe <table>" <database> ...
0
votes
0answers
32 views

Running script and restarting it when folder changes

The software I'm currently developing in is using Python and a windows binary that needs to be restarted everytime I change the Python code. Basic flow: Folder changed? Yes: Stop the command, ...
0
votes
3answers
368 views

Linux watch command: “--differences” not working

I would like to use the linux watch command and have seen that there may be a "culmulative" (--differences=) parameter but this doesnt appear to be working. Basically I would like to do the following ...
3
votes
2answers
773 views

Continuously check netstat output for a particular program

I have a android emulator running on port 5554. I want to continuously watch the netstat output concerning emulator stuff. Right now I have to manually execute this command every time sudo netstat ...
0
votes
2answers
490 views

How do I use the watch and jobs commands together in Bash?

How do I use the watch command with jobs command, so that I can monitor when a background job is finished? I execute it as follows, but I do not get the output from jobs: watch jobs If I run jobs ...
4
votes
4answers
427 views

Is there a linux command that lets me color-code the result of another command?

I'm running a watch on a command to monitor the number of open connections for a service we're diagnosing. I need to keep an eye on it while doing other work, to help other developers identify when ...
0
votes
2answers
757 views

Run two watch commands simultaneously

I want to run two executables in the foreground by typing one line of code or running a shell script. These executables watch a directory and recompile some code while outputting their status to ...
1
vote
1answer
284 views

How can I get gnu watch to run in the background?

If I start a watch command in the background, it stops. Bringing the job to the foreground makes it run again, but I want this to run in the background. $ watch ./do-something.sh & [1] 97673 [1]+ ...
10
votes
5answers
10k views

Store the output of date and watch command to a file

I am a newbie to linux and I am trying to watch a command and try to log it into a file. I tried watch -t -n 10 "(date '+TIME:%H:%M:%S' ; ps aux | grep "pattern" | wc -l)" >> logfile and am ...
0
votes
2answers
326 views

Changing terminal size affects the output of grep inside a watch command

If I run a command like: watch "ps -ef | grep '^foo.*bar'" and the matching output line of ps -ef is a long line like foo <lots and lots of text here> bar whether this line is output is ...
3
votes
2answers
2k views

Using the watch command with an argument that contains quotes

I'm trying to get watch to work correct with commands that contain quotes, and the watch man page isn't very detailed about how quotes work. To give a concrete example, how can I run the following ...
1
vote
1answer
161 views

How can I fix a problem with standard error screwing up the output of watch?

Specifically, I am trying to run the following command on both CentOS and Fedora14 (same issue with both) watch sudo jmap -heap 31945 However, there are a few lines of standard error that screw up ...
3
votes
1answer
182 views

Command-line tool to measure how fast a file is growing?

Is there a command-line tool to measure how fast a text file is growing, in units of lines/second? For small-ish files, I can do something with watch and wc -l, but that measures the file anew each ...
26
votes
2answers
4k views

Using watch with pipes

I'd like to run this command: watch -n 1 tail -n 200 log/site_dev.log | grep Doctrine But it does not run, because "I think" that the grep tries to run on the watch instead of the tail... Is there ...
25
votes
4answers
8k views

bash watch command with colors preserved

From man watch: Non-printing characters are stripped from program output. Use "cat -v" as part of the command pipeline if you want to see them. So how do I use cat -v if I want to see the ...
4
votes
3answers
5k views

TV Tuner to record / show multiple channels at the same time

I need a cheap mode to record / watch multiple TV channel at the same time on a single PC. Can anyone recommend me any solution(TV Tuner, Application) that can help me solve this problem?
0
votes
6answers
2k views

How to block website from reading my IP?

I want to watch videos on a website but I can only access my country's version. Whenever I type in say .ca (Canada) instead of .il (Israel), I get redirected to .il. How can I surpass that?