Clear logs in unix sco 5.0.4

hi
my name es juan

i have sco open server 5.0.4 release

i need clear the log files as wtmp

thanks you very much

In SCO Open Server
the information in /etc/wtmp is cleared out weekly by a cron job that runs /etc/cleanup, you may want to adjust this script if you need longer records to be maintained there.

Generally, you can just use the ">" to empty a log file. For example, to clear out /var/tmp/log, just use:

# > /var/tmp/log

That will empty the file while leaving ownerships and permissions intact.

Sometimes, however, you have a program that keeps the file open while it writes to the log. In such a case, you may need to stop the program, clear the log, and restart.

You can easily check to see if any process is using a file with "fuser":

# fuser /var/tmp/log

will return the pid of syslog. You can combine all this:

# ps -p `fuser /var/tmp/log

*Finally pls maintain your post in one thread. post back if this doesnt help.