How to empty the ORIG folder?

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

How to empty the ORIG folder?

Postby jack bauer » Mon May 03, 2010 1:12 pm

Hi Everybody
every time the webmin shows a full Local disk space, I have to empty the ORIG folder which requires logging through winscp, then taking this path : /root/var/spool/asterisk/monitorDONE/ORIG because it contains all the voice recording so it is the main reason the memory is full
the problem is it takes a long time to open the folder and then to select all the items and deleting them, as winscp often loses connexion with the server so I have to reconnect again and again.
Is there any way to empty it by a written command directly through the server or putty or any similar software??
Thank you in advance
jack bauer
 
Posts: 9
Joined: Wed Mar 24, 2010 1:49 pm

Postby okli » Mon May 03, 2010 1:22 pm

Don't you have similar lines in your crontab?

Code: Select all
### VICIDIAL clean ORIG recordings older than 3 days
0 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 1 -type f -mtime +3 -print | xargs rm -f
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Postby jack bauer » Tue May 04, 2010 3:42 am

okli wrote:Don't you have similar lines in your crontab?

Code: Select all
### VICIDIAL clean ORIG recordings older than 3 days
0 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 1 -type f -mtime +3 -print | xargs rm -f


I am not sure where I can find this line. can you be more specific??
where should I type this command?? in the server itself? putty???
jack bauer
 
Posts: 9
Joined: Wed Mar 24, 2010 1:49 pm

Postby jack bauer » Tue May 04, 2010 7:34 am

Another question came to my mind:
with this command how long does it take to delete the contents? is it instantly or does it take the same time? does it require server rebooting?
the 3 stars (***) in the command line, do they mean something specific, should I replace them by some other values, or should I just copy paste it to the server/putty??
jack bauer
 
Posts: 9
Joined: Wed Mar 24, 2010 1:49 pm

Postby okli » Tue May 04, 2010 9:17 am

jack bauer wrote:
okli wrote:Don't you have similar lines in your crontab?

Code: Select all
### VICIDIAL clean ORIG recordings older than 3 days
0 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 1 -type f -mtime +3 -print | xargs rm -f


I am not sure where I can find this line. can you be more specific??
where should I type this command?? in the server itself? putty???


cron:
http://centos.org/docs/5/html/Deploymen ... tasks.html
http://www.centos.org/docs/4/html/rhel- ... tasks.html
http://www.google.com/search?num=50&hl= ... =&gs_rfai=

To edit:
crontab -e
with this command how long does it take to delete the contents?
Several seconds, depending how many and how large the files are.

does it require server rebooting
No.
the 3 stars (***) in the command line, do they mean something specific
Read the links above and learn what is cron, it's a basic knowledge in Lunux world, next adjust per your needs.
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Postby jack bauer » Tue May 04, 2010 11:42 am

okli wrote:
jack bauer wrote:
okli wrote:Don't you have similar lines in your crontab?

Code: Select all
### VICIDIAL clean ORIG recordings older than 3 days
0 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 1 -type f -mtime +3 -print | xargs rm -f


I am not sure where I can find this line. can you be more specific??
where should I type this command?? in the server itself? putty???


cron:
http://centos.org/docs/5/html/Deploymen ... tasks.html
http://www.centos.org/docs/4/html/rhel- ... tasks.html
http://www.google.com/search?num=50&hl= ... =&gs_rfai=

To edit:
crontab -e
with this command how long does it take to delete the contents?
Several seconds, depending how many and how large the files are.

does it require server rebooting
No.
the 3 stars (***) in the command line, do they mean something specific
Read the links above and learn what is cron, it's a basic knowledge in Lunux world, next adjust per your needs.


Dear Okli
thank you for the prompt reply and for chapters to consult
it is a huge world I am getting into.
in the meanwhile, is there any possibility I can have the command line to empty the orig file every friday at any given time??, let's say at 01:00 PM???
jack bauer
 
Posts: 9
Joined: Wed Mar 24, 2010 1:49 pm

Postby jack bauer » Wed May 05, 2010 8:19 am

Guys please, all I need is a simpler way to empty the ORIG file, this cron thing got me confused as I don't have a strong background in IT and especially linux
thanks
jack bauer
 
Posts: 9
Joined: Wed Mar 24, 2010 1:49 pm

Postby ramindia » Fri May 07, 2010 12:20 am

Hi

in the same way

how can i detele data more than 30days old
like agent logs, call logs

Ram
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby gardo » Sun May 09, 2010 4:30 pm

Simplest way to do it manually is running the following command on the server:

rm -rf /var/spool/asterisk/monitorDONE/ORIG/*


This will delete all files in /var/spool/asterisk/monitorDONE/ORIG/.

jack bauer wrote:Guys please, all I need is a simpler way to empty the ORIG file, this cron thing got me confused as I don't have a strong background in IT and especially linux
thanks
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Postby gardo » Sun May 09, 2010 4:31 pm

Look and edit for the following entry in your crontab:

### 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


Adapt to your current settings.

ramindia wrote:Hi

in the same way

how can i detele data more than 30days old
like agent logs, call logs

Ram
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Postby jack bauer » Mon May 10, 2010 2:45 am

gardo wrote:Simplest way to do it manually is running the following command on the server:

rm -rf /var/spool/asterisk/monitorDONE/ORIG/*


This will delete all files in /var/spool/asterisk/monitorDONE/ORIG/.

jack bauer wrote:Guys please, all I need is a simpler way to empty the ORIG file, this cron thing got me confused as I don't have a strong background in IT and especially linux
thanks


Thank you Gardo, your answer is exactly what I was looking for!!!!
jack bauer
 
Posts: 9
Joined: Wed Mar 24, 2010 1:49 pm

Postby jack bauer » Mon May 10, 2010 8:10 am

gardo wrote:Simplest way to do it manually is running the following command on the server:

rm -rf /var/spool/asterisk/monitorDONE/ORIG/*


This will delete all files in /var/spool/asterisk/monitorDONE/ORIG/.

jack bauer wrote:Guys please, all I need is a simpler way to empty the ORIG file, this cron thing got me confused as I don't have a strong background in IT and especially linux
thanks


Dear Gardo when I tried to do it, this is the message I have
-bash: /bin/rm: Argument list too long
then
-bash: -bash:: command not found

what to do exactly in this case??
jack bauer
 
Posts: 9
Joined: Wed Mar 24, 2010 1:49 pm

Postby jack bauer » Tue May 11, 2010 7:46 am

Any reply?
Any help??
jack bauer
 
Posts: 9
Joined: Wed Mar 24, 2010 1:49 pm

Postby gardo » Wed May 12, 2010 4:25 am

Looks like you have tonnes of recording. Hehehe! Try this instead:

rm -rf /var/spool/asterisk/monitorDONE/ORIG/
mkdir /var/spool/asterisk/monitorDONE/ORIG/


This will delete the ORIG folder and all it's contents and then recreate just the folder.
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Postby jack bauer » Tue May 18, 2010 8:08 am

thank you Gardo you are my man!!!!
jack bauer
 
Posts: 9
Joined: Wed Mar 24, 2010 1:49 pm

Re: How to empty the ORIG folder?

Postby Ali7003 » Sat Jan 05, 2019 1:18 pm

how to delete only last hour ORIG folder using putty?
Ali7003
 
Posts: 3
Joined: Sun Sep 02, 2018 1:07 pm

Re: How to empty the ORIG folder?

Postby williamconley » Sat Jan 05, 2019 3:34 pm

Ali7003 wrote:how to delete only last hour ORIG folder using putty?

http://bfy.tw/LdyV

this should provide results showing both "older than" and "in the last", so choose wisely at that point. 8-)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 37 guests