The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
16 views

watch perldoc output preserving formatting [migrated]

When I use watch to follow a perlpod documentation i am writing, the formatting gets mangeled (see NAME and Synopsis sections): Every 2,0s: perldoc lib/Uki/Handlers/SOS.pm ...
0
votes
1answer
54 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
38 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
3
votes
4answers
668 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
3answers
630 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
1answer
333 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
141 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
104 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
79 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
68 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
103 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
113 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
698 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
152 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 ...
13
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 ...