How to monitor a file if it continuously being updated??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandhya rani
    New Member
    • May 2007
    • 17

    How to monitor a file if it continuously being updated??

    In shell scripting How can we monitor a file if it is continuously being updated??
  • ghostdog74
    Recognized Expert Contributor
    • Apr 2006
    • 511

    #2
    one way is to use the -f option of the tail command.

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      Originally posted by ghostdog74
      one way is to use the -f option of the tail command.
      Also, tee is a nice filter that you can pipe through to a file and STDIO at the same time.

      Comment

      • sandhya rani
        New Member
        • May 2007
        • 17

        #4
        thanks for ur replies. It helps me....

        Comment

        Working...