The watch tag has no wiki summary.
2
votes
4answers
199 views
less with “update file” like functionality
I want to watch a file that gets overwritten every 5 minutes with less. How can I make less follow the new file descriptor instead of keeping the old one displayed? watch "cat file" won't do it ...
2
votes
2answers
223 views
How to watch for count of new lines in tail
I want to do something like this:
watch tail -f | wc -l
#=> 43
#=> 56
#=> 61
#=> 44
#=> ...
It counts new lines of tail each second
/ Linux, CentOs
To be more clear. I have got ...
0
votes
0answers
88 views
Why is Unison looking for changes outside of Path?
When I start Unison, it searches for changes outside of my specified Path, but seems to only sync the actual Path folders, as it should. Why is it searching everything? And how can I go about stopping ...
-1
votes
1answer
95 views
WATCH command with pipes
Hithere, how do I watch this command:
netstat -plan|grep :80|egrep -v "(:8082)|(:8080)|(:8081)"|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -n
It errors out when surrounding it with single/double ...
0
votes
4answers
859 views
Using watch to run a shell script - but the script goes defunct
So I want to keep an eye on my network connectivity so I can make a report for my ISP. (seems like the modem goes out for about 30-60 seconds about once a day)
So I copied this handy little script
...
1
vote
1answer
120 views
Watching a file and sending an email when it changes
I have a log file that occasionally has critical errors. Each time a critical error occurs, I'd like to have an email sent to myself notifying me of the change. Is there a unix tool / set of unix ...
0
votes
0answers
100 views
Utility that waits for file to show up, then can execute a batch file when it shows up
I'm looking for input from the community for a utility that can set up a filesystemwatcher, ie, it can hook into File System events that detect when a file is created in a specific directory, and then ...
0
votes
2answers
67 views
Utility to monitor command output changes
Please, suggest native (from standard repositories) Ubuntu utility, similar to topless from ports in FreeBSD.
0
votes
0answers
65 views
Automate the process of looking for CVE (new vulnerabilities) related to our infrastructure
Is there any service available where you simply list the services, programs and versions you use, and when some CVE comes out about it, you automatically get alerted?
Also, is there any other place ...
1
vote
4answers
95 views
Count amount of new lines with interval in log
Is there a way/tool to tail or watch a logfile and report the amount of lines it grows?
E.g. I want to see the amount of new entries in mysql.log every 3 seconds.
watch wc -l /path/to/log.log1 ...
1
vote
1answer
32 views
Help automating updating of aliases for sendmail
Currently I have a crontab entry that does the following:
#!/bin/bash
/etc/init.d/sendmail stop
/etc/init.d/sendmail start
/usr/bin/newaliases
In the category of "learn something new every day", I ...
0
votes
3answers
109 views
Program that limits net transfer
I have a router and I need control and watch my users' transfer in my local subnet. How should I do that? What software should I use?
My router is ASMAX Br-615n.
I hope you'll answer to this. ...
0
votes
2answers
602 views
GNU watch - how do I make it read my environment (aliases, functions, etc)
This one has been bugging me for a while: I want to use the marvelous GNU watch command to run a few custom aliases and functions that are defined in my .bashrc, but it is never able to run anything ...
1
vote
2answers
133 views
Are the “procps” utilities available in a weird name/path on common AIX?
I have to deal with a very poorly loaded out AIX system for a development project. One thing I find missing are utilities common to Linux systems, such as those in the procps collection. Is there a ...
10
votes
9answers
734 views
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 ...