[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
delete and redirection
From: |
Fabien Carmagnac |
Subject: |
delete and redirection |
Date: |
Mon, 4 Aug 2008 15:34:55 +0200 |
Hello,
I have a problem when I remove a file which is a redirection of the std output
of a process:
I launch a process and redirect output to file:
address@hidden ./myprocess &> mylog.log
Then (after a few days/weeks), I remove the mylog.log file, hoping the system
will create a new fresh one.
address@hidden rm -f mylog.log
But the system never created again the file.
After a few days, df gives 100% disk used but kdirstat (a gui tool to watch
size of each folder recursivly), says 20%used.
Then, if I reboot, df says 20%used also.
So my question is : is there a way to rotate/remove/resize logs without:
- reboot computer
- stop process flishing in it
The computer is used as a very critical node in our organisation (quick trading
24/24).
Thanks,
Regards,
Fabien CARMAGNAC
R&D Manager, Portfolio Manager
TINBERGEN-AM
35, rue de Chateaudun
75009 Paris - France
Paris : +33 175 000 322
Mobile : +33 664 778 699
Fax : +33 177 725 773
AMF agrément GP-07000030
ISIN: FR0010505115
- delete and redirection,
Fabien Carmagnac <=