Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

smit.log????

Status
Not open for further replies.

bonsky

MIS
Apr 23, 2001
280
US
AIXers,

I believed that everytime you do smitty it creates a smit.logs. For root users and as well as other users. Is it possible for us to stop this logging??? How to stop this??? thanks a lolt!
 
Hi,

I'm not sure whether this is going to work or not, but you might try to redirect the logs to /dev/null
There's an option (try "man smit") allowing you to specify path and name for the smit Log-Files ...

Regards
Thomas
 
Create a script and call it tidy.sh. put the following two line in it

find / -type f -name smit.log -exec rm {} \;
find / -type f -name smit.script -exec rm {} \;

Then just call the tidy script from crontab each night to remove them.

crontab -e

0 0 * * 0 /usr/local/bin/tidy.sh

mike --
| Mike Nixon
| Unix Admin
| ----------------------------
 
Personally I use my smit.* a lot for making new scripts. If one person is being a pest, rather than remove everyone's smit.* maybe you should just remove the one.

Another cute way to "fix" it is link the filenames to /dev/null. Sometimes we do that with SAP core files, but it's not really good admining. Better to truncate, I think. Do a tail for however many lines you want to a temp file then mv temp to original.

My rambling helps me think... =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top