Project

General

Profile

Log file delete mannually

Added by Deeptanu Roy about 12 years ago

How can I delete dialer all log file manually... Not with any automatic script . I want to delete log file manually ( logging in to dialer cent os ) after checking that. Can anyone help me with that...???


Replies (1)

RE: Log file delete mannually - Added by Wilper Necesario almost 12 years ago

Hi Deeptanu,

You can use crontab and basic command for you be able to delete the logs in centos. What logs you want to delete.?
If you are asking for GoAutodial/vicidial there is a default automatic delete of logs in the crontab.

To view the crontab list run #crontab -l
To Edit the crontab run #crontab -e

Below is the example crontab in the default installation on Goautodial.
  1. remove old vicidial logs and asterisk logs more than 2 days old
    28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
    29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f
    30 0 * * * /usr/bin/find / -maxdepth 1 -name "screenlog.0*" -mtime +4 -print | xargs rm -f

Cheers
q^_^p

    (1-1/1)
    Go to top