Linux Bash Shell Script – Delete files more than x days

Posted by themamakcorner October - 25 - 2011 0 Comment
linux

The following example will be able to delete files, which last modification day was 2 days ago: #!/bin/sh ############################################### ## Shell script to run housekeep logs   ## ## delete aaa.log older than x days ago   ## ############################################### ##declaring variables echo “HOUSEKEEP started…” LOG_PATH=/home/xxx/logs PAST=2 find $LOG_PATH -mtime +$PAST -type f -exec rm -rf {} \; echo “HOUSEKEEP ends…”

org.omg.CORBA.INTERNAL: JTS5022

Posted by themamakcorner October - 12 - 2011 2 Comments
glassfish

Error from Glassfish’s server.log: nested exception is: javax.transaction. SystemException: org.omg.CORBA.INTERNAL: JTS5022: Unexpected exception [com.sun.jts.CosTransactions.LogException: Log exception at point 14: LOG-003: Read failure] from log Reason: Due to corrupted transactions/server log files Solution: Remove log files (normally <glassfish installation>/domains/domain/log) Restart glassfish

Related Posts Plugin for WordPress, Blogger...