Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with /dev/null

807557Jun 24 2009 — edited Jun 29 2009
Hi,
I faced this problem twice and I do not know how to reproduce it.

There are 2 log files ERRORFILE and EVENTFILE.
I have a script as show below which takes a backup of the log files,every hour. Processes are continously writing to the log files. Occasianaly(twice till now), I see that the inode of the ERRORFILE and EVENTFILE gets changed, due to this no precesses can write to the log file and they need to be restarted to initiate logging. Is there something worng with the command "cp /dev/null".?
TIME=`date '+%Y%m%d_%H%M'`

cp $ERRORFILE $ERRORFILE:$TIME:BACKUP

cp $EVENTFILE $EVENTFILE:$TIME:BACKUP

/usr/bin/gzip $ERRORFILE:$TIME:BACKUP

/usr/bin/gzip $EVENTFILE:$TIME:BACKUP

cp /dev/null $ERRORFILE

cp /dev/null $EVENTFILE 
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 27 2009
Added on Jun 24 2009
11 comments
1,053 views