Results 1 to 9 of 9
-
03-08-2012, 03:06 AM #1WHT Addict
- Join Date
- Jul 2006
- Posts
- 166
how to find and delete error_log files via ssh
hello mates, l would like to find and delete every files named error_log with a ssh code, is it posssible?
-
03-08-2012, 03:12 AM #2Web Hosting Guru
- Join Date
- May 2009
- Posts
- 312
-
03-08-2012, 03:15 AM #3WHT Addict
- Join Date
- Jul 2006
- Posts
- 166
I am running some scripts and some small bots that is fetching data and they are creating too much big error_log files like 250 gb in a day.
I cant use same code in one command? like find and delete???
-
03-08-2012, 03:18 AM #4Newbie
- Join Date
- Jan 2012
- Posts
- 22
Then null the error log, do not delete it
-
03-08-2012, 03:20 AM #5Web Hosting Guru
- Join Date
- May 2009
- Posts
- 312
you can null the error_logs using
> error_log command.
You can add the same commands in a bash file and run it as a script in cron on a regular basis.
-
03-08-2012, 03:41 AM #6WHT Addict
- Join Date
- Jul 2006
- Posts
- 166
-
03-08-2012, 06:16 AM #7Web Hosting Guru
- Join Date
- May 2009
- Posts
- 312
-
03-08-2012, 06:49 AM #8Web Hosting Master
- Join Date
- May 2006
- Location
- New Zealand
- Posts
- 6,933
If you are getting 250gig of error logs a day you are better off fixing the script causing the errors or at least turning off logging of the errors.
Single line to php.ini would fix(hide) this.██ | Hoopla Hosting -
██ | WordPress Web Hosting New Zealand - Reseller Hosting - cPanel - Zurmo Hosting - Softaculous - CloudFlare
-
03-08-2012, 07:17 AM #9The VPS Specialist
- Join Date
- Aug 2003
- Location
- Edinburgh/London
- Posts
- 5,789
miniVPS - UK Based Value and Premium VPS Servers!
Xavvo.com Innovative Hosting for Innovative People!
Similar Threads
-
Script to delete error_log files..
By fmosse in forum Systems Management RequestsReplies: 15Last Post: 01-14-2012, 03:40 AM -
delete all image files in a directory using ssh
By 4Drive in forum Hosting Security and TechnologyReplies: 7Last Post: 08-17-2010, 08:46 AM -
SSH - Find & Delete ?
By Send Media in forum Hosting Security and TechnologyReplies: 0Last Post: 03-11-2010, 01:01 PM -
How do I delete files via SSH?
By bullony13 in forum Hosting Security and TechnologyReplies: 7Last Post: 10-19-2004, 08:31 AM -
How to find and delete all log files **HELP!!**
By NiceRsx2002 in forum Dedicated ServerReplies: 17Last Post: 09-13-2002, 03:24 PM