Hi All
I hope anyone can help me, i have an j2ee app under weblogic 8.1 server, i redirect the log to an external file (nohup.out), this file grows fast and i use a cron calling a script to rotate it everyday at 00:05 hrs. and the server stills running, everything is ok, but when the rotate file is calling uses the next command 'cat /dev/null > nohup.out' to resize the nohup file to 0 kbs, then when someting is write on the nohup the file grows as its first size, writting binaries to replace the info erased before, how can i rotate my nohup without that problem ocurs and without shutting down my server everyday!! Thanks!!!
Oscar Badillo
I hope anyone can help me, i have an j2ee app under weblogic 8.1 server, i redirect the log to an external file (nohup.out), this file grows fast and i use a cron calling a script to rotate it everyday at 00:05 hrs. and the server stills running, everything is ok, but when the rotate file is calling uses the next command 'cat /dev/null > nohup.out' to resize the nohup file to 0 kbs, then when someting is write on the nohup the file grows as its first size, writting binaries to replace the info erased before, how can i rotate my nohup without that problem ocurs and without shutting down my server everyday!! Thanks!!!
Oscar Badillo