Stdout files.

From: Alistair McKeown (Alistair.Mckeown_at_jacobsrimell.com)
Date: 09/16/04

  • Next message: Jorge Ruiz Martinez: "View wtmpx and utmpx"
    To: sunmanagers@sunmanagers.org
    Date: Thu, 16 Sep 2004 12:55:47 +0100
    
    

    Hi Gurus,
                    I'm sure this is a common thing to do. We have a process
    running which writes stdout (standard out) to a log file. I was needing to
    clear this file out as its getting big.
                    Now on our test servers we can stop the process and do a 'cp
    /dev/null filename' and it clears it out. Trouble is at the moment, the
    files I need clearing out are on a production server where the process can't
    be stopped only in a maintainence window.
                    Anyone know how to clear a stdout log file without stopping
    the process its attached to. I actually tried it in production with the
    process running and initial I did an 'ls' again and the file size was down
    to '0' but 30 seconds later doing another 'ls' the size is still the same
    and when you do a more on the filename it screws up!!

    Alistair.
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Jorge Ruiz Martinez: "View wtmpx and utmpx"

    Relevant Pages

    • RE: [PHP] include files
      ... To clarify, here's an example of what I'd like to do: ... I am needing the included filename. ...
      (php.general)
    • Using const_missing to do automatic require
      ... I'd like to def const_missing to require the appropriate file, ... needing to put require 'filename' in the top of my code. ... detracting. ...
      (comp.lang.ruby)