> How can you 'watch' a file as it is being written to? For example, I want
> to have a script watch a log files for certain information and do
> something when it sees the information.
You can:
- tail -f
- less +F
-Jim
--
E-mail the word "unsubscribe" to [EMAIL PROTECTED]
TO UNSUBSCRIB
Off the top try piping it through either ( less -o more -o most )
and doing a /what_I_want to find what you are looking for ... I hope it
works ...
J.
On Wed, 4 Mar 1998, Paul Miller wrote:
> On 4 Mar 1998, Ben Pfaff wrote:
>
> >How can you 'watch' a file as it is being writte
Paul Miller <[EMAIL PROTECTED]> asks:
> How can you 'watch' a file as it is being written to? For example, I want
> to have a script watch a log files for certain information and do
> something when it sees the information.
>
tail -f
--
_
|_) _ |_ Robert D. Hilliard<[EMAIL
hmmm.. if 'tail -f filename' continuously outputs using stdout, how could
I stop it when the text I'm looking for appears? I want tail to terminate
when it receives the following information:
caller=##, conn='', name='username'
..and put those strings in variables
On 4 Mar 1998, Ben Pfaff wrote:
>How can you 'watch' a file as it is being written to? For example, I want
>to have a script watch a log files for certain information and do
>something when it sees the information.
>
> Depending on exactly what you mean, `tail -f' might be helpful.
>
Paul Miller wrote:
>
> How can you 'watch' a file as it is being written to? For example, I want
> to have a script watch a log files for certain information and do
> something when it sees the information.
tail -f file_name
>
> Thanks
> -Paul
>
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-
In article <[EMAIL PROTECTED]>,
Paul Miller <[EMAIL PROTECTED]> wrote:
>
>How can you 'watch' a file as it is being written to? For example, I want
>to have a script watch a log files for certain information and do
>something when it sees the information.
Ah, basic shell programming question :)
How can you 'watch' a file as it is being written to? For example, I want
to have a script watch a log files for certain information and do
something when it sees the information.
Depending on exactly what you mean, `tail -f' might be helpful.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST:
How can you 'watch' a file as it is being written to? For example, I want
to have a script watch a log files for certain information and do
something when it sees the information.
Thanks
-Paul
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] .
Troub
9 matches
Mail list logo