The STAF Log service does not provide the ability to "follow" like the -f 
option of the tail command provides to monitor the growth of a file being 
written by some other process (at least not via a single LOG QUERY service 
request).  A "tail -f" command does not terminate but enters an endless 
loop , wherein it sleeps for a second and then attempts to read and copy 
further records from the input-file.  But, you could simulate this by 
writing a program that submits a few STAF Log service QUERY requests and 
utilize the STAF Log service's QUERY request to display the last nn number 
of records in a log file (via the LAST option), as well as the FROMRECORD 
option which selects only those records whose record number is greater 
than or equal to the specified record number.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Tennis Smith <tennis_sm...@yahoo.com>
To:     staf-users@lists.sourceforge.net, 
Date:   01/15/2013 10:19 AM
Subject:        [staf-users] Remote "tail" of logs?



Hi,

I'm trying to figure out how to do the equivalent of doing "tail -f" on a 
running staf log in a remote machine.  Is that possible?

-- 
Tks,
-Tennis 
------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to