The system I work on, produces several kinds of status-files in a single directory. I would like to be able to see the files as they are added to this directory.
I was wondering if it would be possible to get a "tail -f" alike view of the ls-command, in such a way that a newly added file is... (4 Replies)
I have a log file which is continuously added to, called log.file. I'd like to
monitor this file, and when certain lines are found, update some totals in
another file. I've played around with tail -f, grep, and awk, but can't seem
to hit the right note, so to speak.
The lines I'm... (0 Replies)
Hi! I have a large set of pairs of text files (each pair in their own subdirectory) and each pair shares head/tail (a couple of first and last lines) but differs in the middle part. I need to delete the heads/tails and keep only the middle portions in which they differ. The lengths of heads/tails... (1 Reply)
Hi there, I'm trying to run a simple command in Solaris 10:
tail -10 *.log
But this gives me in the output just last 10 rows of a SINGLE log file :eek: (and there are many in active directory).
Please, do you have any idea what's the problem? :confused: Is it a Solaris issue?
Thank you in... (2 Replies)
Hi,
I'd like to process multiple files. For example:
file1.txt
file2.txt
file3.txt
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
Hi,
As part of our project, we need to load historical data for a year before our system is live. We have the data feed files that we need to load. However, I need to make sure that the file structure (number of fields separated by a comma) on the field is same for all the files of the same... (1 Reply)
I need to execute a program which will generate some alarms. I wish to capture those alarms in a single output file.
I executed with following command on linux:
tail -f test1.alarms -f test2.alarms|awk 'NR>20' >> output
But however when I tried to execute same on solaris platforms it fails.... (2 Replies)
hi
i need to run from a bash script
tail -f /var/log/access_log >> access1
tail -f /var/log/prod/prod1 >> access1
tail -f /var/log/prod/prod2 >> access1
this script purpose is to start at server boot time
and should always run.
what is the best way to put it on a script
Thanks
Dan (1 Reply)
Dears
i have a scrip run in unix that need to use the tail -f command, as below:
DATE=`date '+%m%d%y'`
tail -f /var/messages | grep "start" >> /export/logs/start_${DATE}.out
but the problem that the tail -f will be stop and working in the background in then end of the day (23:59:59)... (0 Replies)
I have 250 files that have 16 columns each - all numbered as follows stat.1000, stat.1001, stat.1002, stat.1003....stat.1250.
I would like to join all 250 of them together tail by tail as follows. For example
stat.1000
a b c
d e f
stat.1001
g h i
j k l
So that my output... (2 Replies)
Discussion started by: kayak
2 Replies
LEARN ABOUT DEBIAN
inotail
INOTAIL(1) Inotify enhanced tail INOTAIL(1)NAME
inotail - A fast and lightweight version of tail using inotify
SYNOPSIS
inotail [OPTION]... [FILE]...
DESCRIPTION
inotail is a replacement for the 'tail' program found in the base installation of every Linux/UNIX system. It makes use of the inotify in-
frastructure in recent versions of the Linux kernel to speed up tailing files in the follow mode (the '-f' option). Standard tail polls the
file every second by default while inotail listens to special events sent by the kernel through the inotify API to determine whether a file
needs to be reread. Note: inotail will not work on systems running a kernel without inotify. To enable inotify, please set CONFIG_INOTIFY=y
in your Linux kernel configuration and recompile it.
Currently inotail is not fully compatible to neither POSIX or GNU tail but might be in the future.
OPTIONS -c N, --bytes=N
output the last N bytes. If the first character of N is a '+', begin printing with the Nth character from the start of each file.
-f, --follow
keep the file(s) open and print appended data as the file grows
-n N, --lines=N
output the last N lines (default: 10) If the first character of N is a '+', begin printing with the Nth line from the start of each
file.
-v, --verbose
print headers with file names
-h, --help
show help and exit
-V, --version
show inotail version and exit
AUTHOR
Written by Tobias Klauser <tklauser@distanz.ch>
SEE ALSO tail(1), inotify(7)
2006-08-13 INOTAIL(1)