The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
100 views

Daemon for watching local file changes, uploading to FTP on change

Running Ubuntu 13.10, editing files locally. Staging server is online. No git or anything - I just need to edit a file locally, save it, upload it, and see what it does on the server. Looking for a ...
2
votes
1answer
75 views

How to Add color support to watch command

as the title says, I want to see colors in my watch command. ex: # enable colors when running javascript unittests with watch watch mocha # enable colors when doing `ls` watch ls -aG
4
votes
4answers
1k 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 ...
3
votes
3answers
1k 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 ...
1
vote
1answer
572 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
1k 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 ...
2
votes
1answer
153 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
2answers
81 views

Utility to monitor command output changes

Please, suggest native (from standard repositories) Ubuntu utility, similar to topless from ports in FreeBSD.
1
vote
4answers
112 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
35 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
118 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. ...
1
vote
2answers
823 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
174 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 ...
14
votes
9answers
1k 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 ...