On Mon, Aug 28, 2000 at 02:31:29PM -0400, Chris Ryan wrote: > It's not normally a good idea to move/remove files that a process has an > open file handle for. The safest way is to copy the file to a new > location/name then cat /dev/null > logfile What's wrong with moving the file when it's in use? Copying the file will take much longer, and you might loose log-entries that are written after cp but before truncate. -- Ragnar Kjorstad
- [ADMIN] [7.0.2] rotating log files ... The Hermit Hacker
- Re: [ADMIN] [7.0.2] rotating log files ... Mitch Vincent
- Re: [ADMIN] [7.0.2] rotating log files ... Alfred Perlstein
- Re: [ADMIN] [7.0.2] rotating log files ... Mitch Vincent
- Re: [ADMIN] [7.0.2] rotating log files ... Chris Ryan
- Re: [ADMIN] [7.0.2] rotating log files ... Ragnar Kj�rstad
- Re: [ADMIN] [7.0.2] rotating log files ... Dana Hudes
- Re: [ADMIN] [7.0.2] rotating log f... Alfred Perlstein
- Re: [ADMIN] [7.0.2] rotating log f... Ragnar Kj�rstad
- Re: [ADMIN] [7.0.2] rotating log files ... Dana Hudes
- Re: [ADMIN] [7.0.2] rotating log files ... Lamar Owen
- Re: [ADMIN] [7.0.2] rotating log files ... Alfred Perlstein
- Re: [ADMIN] [7.0.2] rotating log files ... Palle Girgensohn
- Re: [ADMIN] [7.0.2] rotating log files ... Bruce Momjian
- RE: [ADMIN] [7.0.2] rotating log files ... Neil Toronto
- RE: [ADMIN] [7.0.2] rotating log files ... The Hermit Hacker
