Re: 'watching' a file

1998-03-06 Thread Jim
> 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

Re: 'watching' a file

1998-03-05 Thread C.J.LAWSON
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

Re: 'watching' a file

1998-03-05 Thread Bob Hilliard
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

Re: 'watching' a file

1998-03-05 Thread Ben Pfaff
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

Re: 'watching' a file

1998-03-05 Thread Paul Miller
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. >

Re: 'watching' a file

1998-03-04 Thread Ralph Winslow
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-

Re: 'watching' a file

1998-03-04 Thread Miquel van Smoorenburg
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 :)

Re: 'watching' a file

1998-03-04 Thread Ben Pfaff
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:

'watching' a file

1998-03-04 Thread Paul Miller
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